You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug from __future__ import annotations at the start of the file raises the error above.
Reproducible Code
from __future__ importannotationsclassA:
b: Bdef__init__(self, b: B) ->None:
self.b=bclassB:
pass
Run as pylyzer annotations.py.
Expected behavior
Should say "all checks passed"
Screenshots
Environment
Tested on Linux (Arch) and Mac
Python v3.13
Pylyzer v0.0.76 (installed from cargo on Linux, pip on Mac)
Additional context
If the annotations import is removed, no error is raised, which is also incorrect, since Python does not allow forward references without that import.
The text was updated successfully, but these errors were encountered:
Describe the bug
from __future__ import annotations
at the start of the file raises the error above.Reproducible Code
Run as
pylyzer annotations.py
.Expected behavior
Should say "all checks passed"
Screenshots
![image](https://private-user-images.githubusercontent.com/175614296/402696528-a0b3ec76-e48e-46fb-86f6-5aca3c292aee.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDM0OTgsIm5iZiI6MTczODkwMzE5OCwicGF0aCI6Ii8xNzU2MTQyOTYvNDAyNjk2NTI4LWEwYjNlYzc2LWU0OGUtNDZmYi04NmY2LTVhY2EzYzI5MmFlZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QwNDM5NThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05MTQ2NWQwMDk4ODhkN2JlNTFkNzA5ZWRiZjc4NGU3NzFjYjY3NDI0YTI4ZTY2YzZlODgzN2I3ZjcwNTQ5N2JiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.hwBB3RASj-8ez3voO_89H6BFQjpSVqoe-y7GYp0sEa0)
Environment
Additional context
If the annotations import is removed, no error is raised, which is also incorrect, since Python does not allow forward references without that import.
The text was updated successfully, but these errors were encountered: