Skip to content

Code modernizations (Python 3.8) #14

@binaryDiv

Description

@binaryDiv

Currently the minimum required version of Python is 3.7, which lacks some features that would improve the code a bit.

Things to improve when raising the minimum required version of Python to 3.8 or above:

  • validataclasses: Assigning tuples without parentheses to fields with type annotations (correct examples and unit tests),
    e.g. foo: int = (IntegerValidator(), Default(0)) to foo: int = IntegerValidator(), Default(0)
  • @validataclass decorator: positional-arguments-only operator: def validataclass(cls=None, /, **kwargs):

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedThis cannot be done yet because of some dependenciesrefactoringCode refactoring, clean up and other code maintenance work.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions