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

Add PEP 593 based types for all modules for cleaner usage #425

Open
JensHeinrich opened this issue Dec 12, 2023 · 2 comments
Open

Add PEP 593 based types for all modules for cleaner usage #425

JensHeinrich opened this issue Dec 12, 2023 · 2 comments

Comments

@JensHeinrich
Copy link

PEP 593 creates an easily extendable syntax to annotate type with further information and annotated-types provides a rather easy interface with its Predicate

So adding a line like

Handelsregisternummer = Annotated[str, Predicate(is_valid)]

to the modules seems to be an useful expansion of this packages capabilities

@arthurdejong
Copy link
Owner

A problem with this is that the module currently still supports Python 2.7 (most of it should also still work with Python 2.6). In which Python version is this included?

@JensHeinrich
Copy link
Author

A problem with this is that the module currently still supports Python 2.7 (most of it should also still work with Python 2.6). In which Python version is this included?

If i see it correctly, it 3.8+

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

2 participants