diff options
author | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-09-09 22:08:32 +0200 |
---|---|---|
committer | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-09-09 22:40:26 +0200 |
commit | ddde4fc074d0b4ae678f5111aafd0f54f3ddf409 (patch) | |
tree | 4510bbf98dd0c7f8bfa79b3b884a80b794e0619c /pylint/checkers/strings.py | |
parent | 360124d8a597422cdc9e94459f87da77d18cbaea (diff) | |
download | pylint-git-ddde4fc074d0b4ae678f5111aafd0f54f3ddf409.tar.gz |
Finish typing across the codebase
Diffstat (limited to 'pylint/checkers/strings.py')
-rw-r--r-- | pylint/checkers/strings.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pylint/checkers/strings.py b/pylint/checkers/strings.py index e5aa70b56..dc332d9ec 100644 --- a/pylint/checkers/strings.py +++ b/pylint/checkers/strings.py @@ -437,7 +437,7 @@ class StringFormatChecker(BaseChecker): self._check_new_format(node, func) def _detect_vacuous_formatting( - self, node: nodes.Call, positional_arguments + self, node: nodes.Call, positional_arguments: list[SuccessfulInferenceResult] ) -> None: counter = collections.Counter( arg.name for arg in positional_arguments if isinstance(arg, nodes.Name) @@ -534,7 +534,10 @@ class StringFormatChecker(BaseChecker): self._check_new_format_specifiers(node, fields, named_arguments) def _check_new_format_specifiers( - self, node: nodes.Call, fields: list[tuple[str, list[tuple[bool, str]]]], named + self, + node: nodes.Call, + fields: list[tuple[str, list[tuple[bool, str]]]], + named: dict[str, SuccessfulInferenceResult], ) -> None: """Check attribute and index access in the format string ("{0.a}" and "{0[a]}"). |