pyhocon
pyhocon copied to clipboard
Generate PEP-484 Stub Files to enable mypy checking
https://www.python.org/dev/peps/pep-0484/#stub-files
Can use the stubgen script bundled with mypy to create a very basic stub file, then improve on that. Would be better to annotate the code itself with type annotations rather than using a stub file, but that may break compatibility.
This would enable mypy to check types of pyhocon objects before runtime.
or alternatively drop support for python2 and simply add type hint inline? ;)