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 typing hints #27

Closed
brainelectronics opened this issue Nov 12, 2022 · 1 comment
Closed

Add typing hints #27

brainelectronics opened this issue Nov 12, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation internal Internal change, not affecting distribution
Milestone

Comments

@brainelectronics
Copy link
Owner

Add typing hints to all files being used in this lib

@brainelectronics
Copy link
Owner Author

Ensure List, Union, Tuple and others are subscritable otherwise an error might be raised.

class _Subscriptable:

    def __getitem__(self, sub):
        return None

_subscriptable = _Subscriptable()

List = _subscriptable
Union = _subscriptable
# ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation internal Internal change, not affecting distribution
Projects
None yet
Development

No branches or pull requests

1 participant