-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed as not planned
Labels
as designedNot a bug, working as intendedNot a bug, working as intendedbugSomething isn't workingSomething isn't working
Description
python/cpython#118465 introduces new class attribute __firstlineno__
, which pyright doesn't support.
An example code work fine in python3.13 runtime
class A: ...
print(f"{A.__firstlineno__=}")
but pyright shows an error
:!pyright run.py
/tmp/tmp.A9F2mvqmhp/run.py
/tmp/tmp.A9F2mvqmhp/run.py:4:12 - error: Cannot access attribute "__firstlineno__" for class "type[A]"
Attribute "__firstlineno__" is unknown (reportAttributeAccessIssue)
1 error, 0 warnings, 0 informations
I've been using pyright 1.1.389
via neovim/mason/pyright extension.
:!pyright --version
pyright 1.1.389
Metadata
Metadata
Assignees
Labels
as designedNot a bug, working as intendedNot a bug, working as intendedbugSomething isn't workingSomething isn't working