Uh oh!
There was an error while loading. Please reload this page.
Add type hints and PEP 561 compliance for improved IDE support - #31
Add type hints and PEP 561 compliance for improved IDE support#31HyperNaser wants to merge 4 commits into
Conversation
…or prettify_json function
… Python 3.6 compatibility
adarshdigievo
commented
Jun 30, 2026
@HyperNaser Thanks for working on this. The PR looks great overall. I have added a few suggestions below:
|
HyperNaser
commented
Jun 30, 2026
Thanks for the review! |
Description
This PR introduces explicit static typing infrastructure to comply with PEP 561. It adds the missing
py.typedmarker file and comprehensive type annotations to allow modern IDE type checkers to correctly resolve types without throwing missing stub errors.Changes
py.typedmarker file to theserpapi/directory.pyproject.tomlconfiguration to package the type markers.http.py,models.py,core.py,textui.py,exceptions.py)textui.pyto useget_lexer_by_name("JSON")