Skip to content

Commit

Permalink
Merge pull request #2373 from majorteach/master
Browse files Browse the repository at this point in the history
chore: remove repetitive words
  • Loading branch information
0xalpharush authored Mar 25, 2024
2 parents 1ed8570 + cac1252 commit 13d7d9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion slither/core/declarations/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ def get_modifier_from_signature(self, modifier_signature: str) -> Optional["Modi

def get_function_from_canonical_name(self, canonical_name: str) -> Optional["Function"]:
"""
Return a function from a a canonical name (contract.signature())
Return a function from a canonical name (contract.signature())
Args:
canonical_name (str): canonical name of the function (without return statement)
Returns:
Expand Down
2 changes: 1 addition & 1 deletion slither/vyper_parsing/declarations/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def _parse_params(self, params: Arguments):
def _parse_returns(self, returns: Union[Name, TupleVyper, Subscript]):

self._function.returns_src().set_offset(returns.src, self._function.compilation_unit)
# Only the type of the arg is given, not a name. We create an an `Arg` with an empty name
# Only the type of the arg is given, not a name. We create an `Arg` with an empty name
# so that the function has the correct return type in its signature but doesn't clash with
# other identifiers during name resolution (`find_variable`).
if isinstance(returns, (Name, Subscript)):
Expand Down

0 comments on commit 13d7d9f

Please sign in to comment.