collections-extended icon indicating copy to clipboard operation
collections-extended copied to clipboard

Add annotations

Open mlenzen opened this issue 9 years ago • 8 comments

mlenzen avatar Jan 06 '16 07:01 mlenzen

Not going to do, invalid syntax for old versions.

mlenzen avatar Jan 13 '16 07:01 mlenzen

Maybe only support recent versions in 1.0

mlenzen avatar May 31 '16 04:05 mlenzen

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

  • https://www.python.org/dev/peps/pep-0484/#stub-files
  • https://www.python.org/dev/peps/pep-0484/#suggested-syntax-for-python-2-7-and-straddling-code

mlenzen avatar Jan 28 '17 15:01 mlenzen

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

mlenzen avatar May 29 '19 08:05 mlenzen

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

mlenzen avatar Aug 15 '19 09:08 mlenzen

Need to use backported typing library for Python <3.6

mlenzen avatar Aug 17 '19 04:08 mlenzen

Can move annotations out of stubs now.

mlenzen avatar Nov 23 '19 08:11 mlenzen

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.

jzazo avatar Sep 27 '22 16:09 jzazo