The docs say that type hints are supported. So I tried that.
client: AsyncIOMotorClient = AsyncIOMotorClient() collection: AsyncIOMotorCollection[Movie] = client.test.test
However, mypy gives me:
“AsyncIOMotorCollection” expects no type arguments, but 1 given
Pylance also gives a similar message. Did they remove it at some point? For some reason, I can’t find any mention of this on the internet. Apologies if this has been brought up before.
Here are my versions:
Python 3.9.21
pymongo 4.6.3
motor 3.4.0