Replies: 1 comment 1 reply
-
|
This was an intentional change. See this issue for details. A value created via a call to I don't think pyright's previous behavior was causing problems for anyone, and the new behavior is unlikely to catch any bugs in real code. Unfortunately, someone pushed for the addition of a test for this case in the type checker conformance test suite, and I felt compelled to make pyright conform with the test. I tried to push back on the change, but the typing spec contains language that documents the fact Since |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've got some confusing new Pyright errors on my svcs project as of 1.1.402.
These lines
with these definitions:
and
Suddenly started throwing:
I've seen FunctionType mentioned in the changelog, but it's unclear to me how any of that is supposed to be one (or why I shouldn't be able to assign a function to a type, but that's a separate issue).
Here's a minimal repro pyright playground:
that also fails with:
Beta Was this translation helpful? Give feedback.
All reactions