Open lisphilar opened 1 year ago
We may need the sphinx.ext.autodoc.typehints
extension to show types in documentation.
https://github.com/tox-dev/sphinx-autodoc-typehints
sphinx.ext.autodoc.typehints
will be used in documentation workflow with #1285.
With "1286,
pyright
as type checkerpyright
py.typed should be included.
https://blog.whtsky.me/tech/2021/dont-forget-py.typed-for-your-typed-python-package/
Checkbox
Issues of the current workflow
Type hints are documented in docstings and un-analyzable with type checker.
Action items
pyright
,mypy
,pytype
Additional Context
To keep backward compatibility,
from __future__ import annotations
andtyping_extension
library may be used.