Skip to content

Commit 45dfa04

Browse files
committed
Increase pyright strictness when checking __all__
1 parent 7a81bd4 commit 45dfa04

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

pyrightconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@
4343
"reportInvalidTypeVarUse": "error",
4444
"reportPropertyTypeMismatch": "error",
4545
"reportSelfClsParameterName": "error",
46+
"reportUnsupportedDunderAll": "none",
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).
50-
"reportOverlappingOverload": "none",
51-
// Several stubs refer to symbols in __all__ that are conditionally
52-
// declared based on platform or version checks.
53-
"reportUnsupportedDunderAll": "none",
51+
"reportOverlappingOverload": "none",
5452
}

pyrightconfig.stricter.json

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

0 commit comments

Comments
 (0)