diff options
| author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-04-14 11:07:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-14 11:07:21 +0200 |
| commit | 47e168cf607e2069b103fc466edfe1c6522e2fb2 (patch) | |
| tree | 97d7b67b673d1147f4b8c9321b6247c117195060 /pylint/extensions/emptystring.py | |
| parent | 99ef057978e2ddd332bdd436fd5fd884deebdc53 (diff) | |
| download | pylint-git-47e168cf607e2069b103fc466edfe1c6522e2fb2.tar.gz | |
Use ``python-typing-update`` on ``pylint/extensions`` directory (#6308)
Diffstat (limited to 'pylint/extensions/emptystring.py')
| -rw-r--r-- | pylint/extensions/emptystring.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pylint/extensions/emptystring.py b/pylint/extensions/emptystring.py index fb1662ef9..7056d1d69 100644 --- a/pylint/extensions/emptystring.py +++ b/pylint/extensions/emptystring.py @@ -4,6 +4,8 @@ """Looks for comparisons to empty string.""" +from __future__ import annotations + import itertools from typing import TYPE_CHECKING, Any, Iterable @@ -67,5 +69,5 @@ class CompareToEmptyStringChecker(checkers.BaseChecker): self.add_message("compare-to-empty-string", node=node) -def register(linter: "PyLinter") -> None: +def register(linter: PyLinter) -> None: linter.register_checker(CompareToEmptyStringChecker(linter)) |
