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

Type Annotation: python 3.13 PEP 727 #170

Open
BalzaniEdoardo opened this issue Jun 18, 2024 · 0 comments
Open

Type Annotation: python 3.13 PEP 727 #170

BalzaniEdoardo opened this issue Jun 18, 2024 · 0 comments

Comments

@BalzaniEdoardo
Copy link
Collaborator

With PEP 727, there will be a new way to annotate types that will be interesting to test.

from typing import Annotated, Doc

class User:
    name: Annotated[str, Doc("The user's name")]
    age: Annotated[int, Doc("The user's age")]

    ...

The problem we are trying to solve is that of being able expand the types of DESIGN_INPUT_TYPE without expanding ArrayLike which has a very large expansion. Expanding ArrayLike makes the docstrings unreadable. Currently we can only expand both, or none.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant