-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Hi! I was wondering if there was any interest in adding type annotations to this library.
I saw on README that python2 is still supported, so this eliminates the option of having inline type annotations. As an alternative, we could have use type comments:
# add.py
def add(a, b):
# type (int, int) -> int
return a + bOr make seperate .pyi type stub files:
# add.pyi
def add(a: int, b: int) -> int: ...These files could be stored in this repository, or stored in typeshed. which allows type checkers access to type stubs for lots of standard and 3rd party libraries.
Let me know what you guys think! I dont mind putting in the effort, just thought I might ask before I get anything started.
Metadata
Metadata
Assignees
Labels
No labels