We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 504ef82 commit 2415355Copy full SHA for 2415355
pyi.py
@@ -54,7 +54,7 @@ class Error(NamedTuple):
54
lineno: int
55
col: int
56
message: str
57
- type: type
+ type: type[PyiTreeChecker]
58
59
60
class TypeVarInfo(NamedTuple):
@@ -1336,7 +1336,7 @@ def _check_union_members(
1336
1337
def _check_for_Y051_violations(self, analysis: UnionAnalysis) -> None:
1338
"""Search for redundant unions such as `str | Literal["foo"]`, etc."""
1339
- seen_builtins: set[type] = set()
+ seen_builtins: set[type[object]] = set()
1340
for literal in analysis.combined_literal_members:
1341
if not isinstance(literal, ast.Constant):
1342
continue
0 commit comments