lukasschwab / arxiv.py

Python wrapper for the arXiv API
MIT License
1.11k stars 123 forks source link

Disambiguate generic `list` type hints #109

Closed lukasschwab closed 1 year ago

lukasschwab commented 1 year ago

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

List any changes that break the API usage supported on master.

None; just updates type hints.

Relevant issues

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.

Checklist