Skip to content

Commit a22cd84

Browse files
committed
Pin the pyright version until I understand what's changed.
In 308 (and 309) somehow I get impossible looking errors, particularly one looking like: /Users/julian/Development/referencing/referencing/_core.py:344:52 - error: Argument of type "Resource[D@Registry]" cannot be assigned to parameter "resource" of type "Resource[D@Registry]" in function "with_resource" "referencing._core.Resource" is incompatible with "referencing._core.Resource" but lots of others saying things like /Users/julian/Development/referencing/referencing/_core.py:125:29 - error: Argument of type "Specification[D@Resource]" cannot be assigned to parameter "default" of type "Specification[Any]" in function "specification_with" "Specification[D@Resource]" is incompatible with "Specification[Any]" (reportGeneralTypeIssues) where I don't understand why Any is not sufficent for the bound type variables, but then again I had trouble understanding why I couldn't use the same bound variables in some of those places anyhow.
1 parent a210ada commit a22cd84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def style(session):
5454

5555
@session()
5656
def typing(session):
57-
session.install("pyright", ROOT)
57+
session.install("pyright==1.1.307", ROOT)
5858
session.run("pyright", REFERENCING)
5959

6060

0 commit comments

Comments
 (0)