Skip to content

Commit 59624ff

Browse files
Updated pyright version to 1.1.160 (#5857)
* Updated pyright version to 1.1.160. Older versions contained a bug that prevented multiple third-party stub packages from having the same top-level module name. * Disabled "reportUnsupportedDunderAll" diagnostic check for now. Co-authored-by: Eric Traut <[email protected]>
1 parent 76eeeee commit 59624ff

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
7878
fail-fast: false
7979
env:
80-
PYRIGHT_VERSION: 1.1.152 # Must match pyright_test.py.
80+
PYRIGHT_VERSION: 1.1.160 # Must match pyright_test.py.
8181
steps:
8282
- uses: actions/checkout@v2
8383
- uses: jakebailey/pyright-action@v1

pyrightconfig.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@
5151
"reportUndefinedVariable": "error",
5252
"reportUnboundVariable": "error",
5353
"reportInvalidStubStatement": "error",
54-
"reportUnsupportedDunderAll": "error",
5554
"reportInvalidTypeVarUse": "error",
5655
"reportPropertyTypeMismatch": "error",
5756
"reportSelfClsParameterName": "error",
5857
// Overlapping overloads cannot be enabled at this time because
5958
// of the "factions.Fraction.__pow__" method and "tasks.gather" function.
6059
// Mypy's overlapping overload logic misses these issues (see mypy
6160
// issue #10143 and #10157).
62-
"reportOverlappingOverload": "none"
63-
}
61+
"reportOverlappingOverload": "none",
62+
// Several stubs refer to symbols in __all__ that are conditionally
63+
// declared based on platform or version checks.
64+
"reportUnsupportedDunderAll": "none",
65+
}

pyrightconfig.stricter.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,15 @@
103103
"reportUndefinedVariable": "error",
104104
"reportUnboundVariable": "error",
105105
"reportInvalidStubStatement": "error",
106-
"reportUnsupportedDunderAll": "error",
107106
"reportInvalidTypeVarUse": "error",
108107
"reportPropertyTypeMismatch": "error",
109108
"reportSelfClsParameterName": "error",
110109
// Overlapping overloads cannot be enabled at this time because
111110
// of the "factions.Fraction.__pow__" method and "tasks.gather" function.
112111
// Mypy's overlapping overload logic misses these issues (see mypy
113112
// issue #10143 and #10157).
114-
"reportOverlappingOverload": "none"
115-
}
113+
"reportOverlappingOverload": "none",
114+
// Several stubs refer to symbols in __all__ that are conditionally
115+
// declared based on platform or version checks.
116+
"reportUnsupportedDunderAll": "none",
117+
}

tests/pyright_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import sys
66
from pathlib import Path
77

8-
_PYRIGHT_VERSION = "1.1.152" # Must match tests.yml.
8+
_PYRIGHT_VERSION = "1.1.160" # Must match tests.yml.
99
_WELL_KNOWN_FILE = Path("tests", "pyright_test.py")
1010

1111

0 commit comments

Comments
 (0)