BeanieODM / beanie

Asynchronous Python ODM for MongoDB
http://beanie-odm.dev/
Apache License 2.0
1.94k stars 203 forks source link

Fix Uniondoc type hint multi model #803

Closed CAPITAINMARVEL closed 7 months ago

CAPITAINMARVEL commented 7 months ago

This is a simple patch to fix this bug https://github.com/roman-right/beanie/issues/801

CAPITAINMARVEL commented 7 months ago

Last one is to fix error when we are trying use await Player.find_one().upsert( await Player.find_one().update(

basically it was working fine but it had an error "UpdateQuery" is not expected "UpdateQuery" is incompatible with the "Awaitable[_T_co@Awaitable]" protocol “await” is not present