mlenzen / collections-extended

Extra Python Collections - bags (multisets), setlists (unique list / indexed set), RangeMap and IndexedDict
http://collections-extended.lenzm.net/
Apache License 2.0
46 stars 10 forks source link

Add annotations #41

Open mlenzen opened 8 years ago

mlenzen commented 8 years ago

Not going to do, invalid syntax for old versions.

mlenzen commented 8 years ago

Maybe only support recent versions in 1.0

mlenzen commented 7 years ago

Can support 2 & 3 by putting the annotations in a stub file or as a comment

mlenzen commented 5 years ago

Check that autodoc uses type annotations https://pypi.org/project/sphinx-autodoc-typehints/

mlenzen commented 5 years ago

Need to create a unique type for each Sentinel so that we can add that type to the annotation.

mlenzen commented 5 years ago

Need to use backported typing library for Python <3.6

mlenzen commented 4 years ago

Can move annotations out of stubs now.

jzazo commented 1 year ago

Can setlists and rest of types be annotated? When I am using this module mypy tells me Type of variable becomes "Any" due to an unfollowed import. It would be nice to have annotations. Thank you.