class AsyncColllection(motor.motor_asyncio.AsyncIOMotorCollection):
def __init__(self):
super().__init__(database=MY_DB, name="my_collection")
Ошибка:
File "/pathtofile.py", line 21, in __init__
super().__init__(database=MY_DB, name="my_collection")
File "/usr/local/lib/python3.7/site-packages/motor/core.py", line 678, in __init__
super(self.__class__, self).__init__(delegate)
TypeError: __init__() missing 1 required positional argument: 'name'
Я не уверен, что не так с этим кодом. Это кажется очень странным, потому что я уже предоставил позиционный аргумент.