-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PEP 563 compatiblity #35
Comments
Example: Having # foo.py
from autocommand import autocommand
@autocommand(__name__)
def main(arg: int):
pass the
However, adding Having # foo-ann.py
from __future__ import annotations
from autocommand import autocommand
@autocommand(__name__)
def main(arg: int):
pass the |
Note It was a known issue: autocommand/src/autocommand/autoparse.py Lines 60 to 61 in acff23e
|
Related to #30. |
I'm confused by that PEP; this is just a major breaking change being shipped to a future minor release of Python? |
PEP 563 appears to have been superseded, due to backwards compatibility issues, so I'm closing this for now. Feel free to re-open if PEP is restored. |
Strong -1 on this one. It indeed has been superseded by PEP 649, but PEP 649 is to come in Python 3.13 that hasn't yet even been released. A correct conclusion would be that PEP 563 would no longer be supported by October 2028. Until 2028, please consider supporting PEP 563, because
@Lucretiel, could you please reopen? I'm not able to do it myself. |
Current string-check argument parsing is pretty naive and doesn't work for postponed annotations.
https://peps.python.org/pep-0563/
The text was updated successfully, but these errors were encountered: