/annots

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

Primary LanguagePythonMIT LicenseMIT

Annots

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.