elansteam / backend

The API for ELAN testing system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Database managers with Motor mypy errors.

Spotika opened this issue · comments

Mypy validation errors occur during validation.

src/db/helpers/auto_increment_database_interface.py:41: error: Incompatible types in "await"
 (actual type "InsertOneResult", expected type "Awaitable[Any]")  [misc]

src/db/helpers/abstract_database_manager.py:29: error: Incompatible return value type
 (got "Collection[Any]", expected "AgnosticCollection[Any]")  [return-value]

src/db/managers/group_database_manager.py:26: error: Return type "Coroutine[Any, Any, None]" of "insert_with_id" 
incompatible with return type "Coroutine[Any, Any, int]" in supertype "AutoIncrementDatabaseInterface"  [override]