Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

eirenik0/annots

Repository files navigation

Annots

image

image

Documentation Status

Updates

annots is the package that allow to use Python 3.6 variable annotations in handy way. Thanks for inspiration to attrs library.

When you wrap a class with annots decorator :

import annot

@annot.s
class Account:
    __tablename__ = 'account'

    username: str
    password: str

Annots add class attribute annotations into __init__ :

class Account:
    def __init__(self, username: str, password: str):
        self.username = username
        self.password = password

Features

  • TODO

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

About

annots is the package that allow to use Python 3.6 variable annotations in handy way

Resources

License

Stars

Watchers

Forks

Packages

No packages published