File
sdks/python/pyproject.toml
Configuration Issue
- Line 71:
disallow_untyped_defs = false
mypy is configured but with disallow_untyped_defs = false, meaning every function missing a return type or parameter annotation silently passes CI. This is what allowed the 26+ type gaps in client.py, __init__.py, server_manager.py, and errors.py to accumulate undetected.
No .pyi Stub Files
No .pyi stub files exist anywhere under sdks/python/. Users consuming the SDK as a dependency from PyPI also get no stubs, so third-party type checkers cannot infer any types from the package.
Impact
- All missing annotations catalogued in the companion
[python-types] issues pass mypy today — CI gives a false green signal
- Without stubs, downstream users running mypy or pyright on their own code get
Unknown types for all pmxt return values
Suggested Fix
- Set
disallow_untyped_defs = true in [tool.mypy]
- Fix the resulting mypy errors (tracked in companion issues)
- Optionally add
py.typed marker file and generate .pyi stubs via stubgen to support downstream type checkers
[tool.mypy]
disallow_untyped_defs = true
Found by automated Python type hints audit
File
sdks/python/pyproject.tomlConfiguration Issue
disallow_untyped_defs = falsemypy is configured but with
disallow_untyped_defs = false, meaning every function missing a return type or parameter annotation silently passes CI. This is what allowed the 26+ type gaps inclient.py,__init__.py,server_manager.py, anderrors.pyto accumulate undetected.No .pyi Stub Files
No
.pyistub files exist anywhere undersdks/python/. Users consuming the SDK as a dependency from PyPI also get no stubs, so third-party type checkers cannot infer any types from the package.Impact
[python-types]issues pass mypy today — CI gives a false green signalUnknowntypes for all pmxt return valuesSuggested Fix
disallow_untyped_defs = truein[tool.mypy]py.typedmarker file and generate.pyistubs viastubgento support downstream type checkersFound by automated Python type hints audit