mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-21 09:08:27 +08:00
Update pyright CI test to use the latest version of pyright (1.1.118). (#5092)
Update pyright CI test to use the latest version of pyright (1.1.118). Enable all but one of pyright's strictest checks. Add a "# type: ignore" to `__new__` method in `weakref.KeyRef` because it uses a non-standard name for the `cls` parameter, which is flagged as an error by pyright. Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
@@ -76,8 +76,12 @@
|
||||
"reportUnboundVariable": "error",
|
||||
"reportInvalidStubStatement": "error",
|
||||
"reportUnsupportedDunderAll": "error",
|
||||
"reportInvalidTypeVarUse": "none",
|
||||
"reportOverlappingOverload": "none",
|
||||
"reportPropertyTypeMismatch": "none",
|
||||
"reportSelfClsParameterName": "none"
|
||||
"reportInvalidTypeVarUse": "error",
|
||||
"reportPropertyTypeMismatch": "error",
|
||||
"reportSelfClsParameterName": "error",
|
||||
// Overloapping overloads cannot be enabled at this time because
|
||||
// of the "factions.Fraction.__pow__" method and "tasks.gather" function.
|
||||
// Mypy's overlapping overload logic misses these issues (see mypy
|
||||
// issue #10143 and #10157).
|
||||
"reportOverlappingOverload": "none"
|
||||
}
|
||||
Reference in New Issue
Block a user