8000 Increase pyright strictness when checking `__all__` (#7356) · python/typeshed@39c8202 · GitHub
[go: up one dir, main page]

Skip to content

Commit 39c8202

Browse files
authored
Increase pyright strictness when checking __all__ (#7356)
1 parent 0a6b6b0 commit 39c8202

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

pyrightconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@
4343
"reportInvalidTypeVarUse": "error",
4444
"reportPropertyTypeMismatch": "error",
4545
"reportSelfClsParameterName": "error",
46+
"reportUnsupportedDunderAll": "error",
4647
// Overlapping overloads cannot be enabled at this time because
4748
// of the "fractions.Fraction.__pow__" method and "tasks.gather" function.
4849
// Mypy's overlapping overload logic misses these issues (see mypy
4950
// issue #10143 and #10157).
5051
"reportOverlappingOverload": "none",
51-
// Several stubs refer to symbols in __all__ that are conditionally
52-
// declared based on platform or version checks.
53-
"reportUnsupportedDunderAll": "none",
5452
}

pyrightconfig.stricter.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,10 @@
111111
"reportInvalidTypeVarUse": "error",
112112
"reportPropertyTypeMismatch": "error",
113113
"reportSelfClsParameterName": "error",
114+
"reportUnsupportedDunderAll": "error",
114115
// Overlapping overloads cannot be enabled at this time because
115-
// of the "factions.Fraction.__pow__" method and "tasks.gather" function.
116+
// of the "fractions.Fraction.__pow__" method and "tasks.gather" function.
116117
// Mypy's overlapping overload logic misses these issues (see mypy
117118
// issue #10143 and #10157).
118119
"reportOverlappingOverload": "none",
119-
// Several stubs refer to symbols in __all__ that are conditionally
120-
// declared based on platform or version checks.
121-
"reportUnsupportedDunderAll": "none",
122120
}

0 commit comments

Comments
 (0)
0