Closed lukasschwab closed 1 year ago
Also updates string annotations in constructor arguments.
Imports annotations from __future__, which allows referring to class types before they're defined.
annotations
__future__
Verification: searched for all instances of : list; there aren't any left in arxiv.py. Generated docs look good.
: list
List any changes that break the API usage supported on master.
master
None; just updates type hints.
List GitHub issues relevant to this change.
None. Prior list typing was just ambiguous, and string-hinted function arguments didn't play nice with IDEs.
list
README.md
Description
Also updates string annotations in constructor arguments.
Imports
annotations
from__future__
, which allows referring to class types before they're defined.Verification: searched for all instances of
: list
; there aren't any left in arxiv.py. Generated docs look good.Breaking changes
None; just updates type hints.
Relevant issues
None. Prior
list
typing was just ambiguous, and string-hinted function arguments didn't play nice with IDEs.Checklist
README.md
example usage has been updated.~ README makes no references to the updated type annotations.