From cac1252706a29195a347357b8d4658b01989d4af Mon Sep 17 00:00:00 2001 From: majorteach Date: Sat, 23 Mar 2024 18:16:20 +0800 Subject: [PATCH] chore: remove repetitive words Signed-off-by: majorteach --- slither/core/declarations/contract.py | 2 +- slither/vyper_parsing/declarations/function.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/slither/core/declarations/contract.py b/slither/core/declarations/contract.py index 7224859c63..f1ca892c88 100644 --- a/slither/core/declarations/contract.py +++ b/slither/core/declarations/contract.py @@ -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: diff --git a/slither/vyper_parsing/declarations/function.py b/slither/vyper_parsing/declarations/function.py index f5acf1296b..ca5f73b5b6 100644 --- a/slither/vyper_parsing/declarations/function.py +++ b/slither/vyper_parsing/declarations/function.py @@ -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)):