Skip to content

Commit ff4c3bd

Browse files
committed
Unpin pyright, as whatever was previously broken seems fixed.
Rather than tons of spurious TypeVar complaints we're left just with complaints about anchor_in with earlier draft object schemas. We can check later whether there's some improvement here to the annotations to make this not complain. From a functional perspective the code obviously passes the tests.
1 parent 411b377 commit ff4c3bd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def typing(session):
8787
"""
8888
Check static typing.
8989
"""
90-
session.install("pyright==1.1.307", ROOT)
90+
session.install("pyright", ROOT)
9191
session.run("pyright", REFERENCING)
9292

9393

referencing/jsonschema.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def maybe_in_subresource(
420420
"properties",
421421
},
422422
),
423-
anchors_in=_anchor_2019,
423+
anchors_in=_anchor_2019, # type: ignore[reportGeneralTypeIssues] TODO: check whether this is real
424424
maybe_in_subresource=_maybe_in_subresource_crazy_items(
425425
in_value={
426426
"additionalItems",
@@ -462,7 +462,7 @@ def maybe_in_subresource(
462462
in_subarray={"allOf", "anyOf", "oneOf"},
463463
in_subvalues={"definitions", "patternProperties", "properties"},
464464
),
465-
anchors_in=_legacy_anchor_in_dollar_id,
465+
anchors_in=_legacy_anchor_in_dollar_id, # type: ignore[reportGeneralTypeIssues] TODO: check whether this is real
466466
maybe_in_subresource=_maybe_in_subresource_crazy_items_dependencies(
467467
in_value={
468468
"additionalItems",
@@ -493,7 +493,7 @@ def maybe_in_subresource(
493493
in_subarray={"allOf", "anyOf", "oneOf"},
494494
in_subvalues={"definitions", "patternProperties", "properties"},
495495
),
496-
anchors_in=_legacy_anchor_in_dollar_id,
496+
anchors_in=_legacy_anchor_in_dollar_id, # type: ignore[reportGeneralTypeIssues] TODO: check whether this is real
497497
maybe_in_subresource=_maybe_in_subresource_crazy_items_dependencies(
498498
in_value={
499499
"additionalItems",

0 commit comments

Comments
 (0)