Skip to content

Commit 41539a0

Browse files
committed
remove unnecessary pyright: ignore
1 parent c124786 commit 41539a0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

flake8_trio/visitors/flake8triovisitor.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323

2424
class Flake8TrioVisitor(ast.NodeVisitor, ABC):
2525
# abstract attribute by not providing a value
26-
error_codes: ClassVar[
27-
dict[str, str]
28-
] # pyright: ignore[reportUninitializedInstanceVariable]
26+
error_codes: ClassVar[dict[str, str]]
2927

3028
def __init__(self, shared_state: SharedState):
3129
super().__init__()
@@ -160,7 +158,7 @@ def add_library(self, name: str) -> None:
160158

161159
class Flake8TrioVisitor_cst(cst.CSTTransformer, ABC):
162160
# abstract attribute by not providing a value
163-
error_codes: dict[str, str] # pyright: ignore[reportUninitializedInstanceVariable]
161+
error_codes: dict[str, str]
164162
METADATA_DEPENDENCIES = (PositionProvider,)
165163

166164
def __init__(self, shared_state: SharedState):

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ reportMissingSuperCall = true
3434
reportPropertyTypeMismatch = true
3535
reportShadowedImports = true
3636
reportUninitializedInstanceVariable = true
37+
# can't enable until https://github.com/python/mypy/issues/12358
38+
reportUnnecessaryTypeIgnoreComment = false
3739
reportUnusedCallResult = false
3840
strict = ["*.py", "tests/*.py", "flake8_trio/**/*.py"]
3941

0 commit comments

Comments
 (0)