Skip to content

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

Description

@JensHeinrich

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

Activity

  1. arthurdejong commented on Mar 17, 2024

    @arthurdejong
    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?

  2. JensHeinrich commented on Mar 18, 2024

    @JensHeinrich
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions