Type stubs for Motor (async MongoDB driver) providing type hints for Motor classes. This package enables static type checking of Motor-based code in projects using mypy or pyright. It is maintained separately from Motor and has a version 1.7.1 as of last update, targeting Python >=3.9. Release cadence is irregular.
pip install motor-stubsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic Motor async usage; stubs provide type checking.
Update code to match stubs; ensure None is handled explicitly for optional parameters
Use # type: ignore[attr-defined] or contribute to stubs
Replace 'from pymongo_stubs import ...' with motor-stubs; ensure only motor-stubs is installed