Skip to content

Commit 32da2c0

Browse files
committed
Update pyright
1 parent 7af76ee commit 32da2c0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

requirements/ci.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ pyzmq==25.1.2
1818
xlrd>=2.0.1
1919
pytest-rerunfailures
2020
jupyterlab<4.0.0
21-
pyright==1.1.376;python_version>="3.7"
21+
pyright==1.1.398;python_version>="3.7"

tests/integration/test_typing.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,17 @@ def assert_pyright_output(
223223
"obj={}",
224224
{
225225
"expected_status": 1,
226-
"expected_outputs": ['"dict[Any, Any]" is incompatible with "Obj"'],
226+
"expected_outputs": [
227+
'"dict[Any, Any]" cannot be assigned to parameter "obj" of type "Obj | None"'
228+
],
227229
},
228230
),
229231
(
230232
"obj={'value': 'a', 'label': 1}",
231233
{
232234
"expected_status": 1,
233235
"expected_outputs": [
234-
'"dict[str, str | int]" is incompatible with "Obj"'
236+
'"dict[str, str | int]" cannot be assigned to parameter "obj" of type "Obj | None"'
235237
],
236238
},
237239
),

0 commit comments

Comments
 (0)