Skip to content

Commit

Permalink
Pin the pyright version until I understand what's changed.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Julian committed May 17, 2023
1 parent a210ada commit a22cd84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def style(session):

@session()
def typing(session):
session.install("pyright", ROOT)
session.install("pyright==1.1.307", ROOT)
session.run("pyright", REFERENCING)


Expand Down

0 comments on commit a22cd84

Please sign in to comment.