Increase pyright strictness when checking __all__ (#7356)

This commit is contained in:
Alex Waygood
2022-03-02 11:31:21 +00:00
committed by GitHub
parent 0a6b6b095c
commit 39c8202eaf
2 changed files with 3 additions and 7 deletions

View File

@@ -43,12 +43,10 @@
"reportInvalidTypeVarUse": "error",
"reportPropertyTypeMismatch": "error",
"reportSelfClsParameterName": "error",
"reportUnsupportedDunderAll": "error",
// Overlapping overloads cannot be enabled at this time because
// of the "fractions.Fraction.__pow__" method and "tasks.gather" function.
// Mypy's overlapping overload logic misses these issues (see mypy
// issue #10143 and #10157).
"reportOverlappingOverload": "none",
// Several stubs refer to symbols in __all__ that are conditionally
// declared based on platform or version checks.
"reportUnsupportedDunderAll": "none",
}

View File

@@ -111,12 +111,10 @@
"reportInvalidTypeVarUse": "error",
"reportPropertyTypeMismatch": "error",
"reportSelfClsParameterName": "error",
"reportUnsupportedDunderAll": "error",
// Overlapping overloads cannot be enabled at this time because
// of the "factions.Fraction.__pow__" method and "tasks.gather" function.
// of the "fractions.Fraction.__pow__" method and "tasks.gather" function.
// Mypy's overlapping overload logic misses these issues (see mypy
// issue #10143 and #10157).
"reportOverlappingOverload": "none",
// Several stubs refer to symbols in __all__ that are conditionally
// declared based on platform or version checks.
"reportUnsupportedDunderAll": "none",
}