Skip to content
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 – Postponed Evaluation of Annotations #89

Open
grananqvist opened this issue Jul 4, 2024 · 0 comments
Open

PEP 563 – Postponed Evaluation of Annotations #89

grananqvist opened this issue Jul 4, 2024 · 0 comments
Labels
Beginner issue Has a straight-forward solution, good for new contributors

Comments

@grananqvist
Copy link
Member

grananqvist commented Jul 4, 2024

Use this https://peps.python.org/pep-0563/

By importing
from __future__ import annotations

To allow self-references instead of having to write in quotes, e.g. -> ‘AbstractDataset’.
Do this for all classes that have self-references.

(113866548)

@grananqvist grananqvist added the Beginner issue Has a straight-forward solution, good for new contributors label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Beginner issue Has a straight-forward solution, good for new contributors
Projects
None yet
Development

No branches or pull requests

1 participant