George Sakkis
George Sakkis
@jirojo2: Use `beanie.DecimalAnnotation` in place of the `Decimal` annotation. @nickleman: As per the [Pydantic docs](https://docs.pydantic.dev/latest/api/types/#pydantic.types.condecimal) for `condecimal`: > This function is discouraged in favor of using [Annotated](https://docs.python.org/3/library/typing.html#typing.Annotated) with [Field](https://docs.pydantic.dev/latest/api/fields/#pydantic.fields.Field) instead....
FWIW this is possible with the [greenback](https://github.com/oremanj/greenback) package: ```py import asyncio import greenback async def async_function(): await asyncio.sleep(1) def sync_function(): greenback.await_(async_function()) async def main(): await greenback.ensure_portal() sync_function() asyncio.run(main()) ```
Point 2 is the least of the problems. With all due respect, the number of open issues (mostly bugs) has gone up, not down, since 1 and 3 were done....
It's https://github.com/BeanieODM/beanie/issues/829 but that's not the point, the point is it could be any subset of the (currently) [64 open](https://github.com/BeanieODM/beanie/issues?q=is%3Aissue+is%3Aopen+bug) and [89 closed "stale"](https://github.com/BeanieODM/beanie/issues?q=is%3Aissue+is%3Aclosed+label%3AStale+bug+) bugs. Expanding the maintainer team from...
I'm getting the same `RuntimeError` as @orsinium and @sylvainOL with Beanie/Pymongo when trying to use Litestar's `AsyncTestClient`. The `httpx.AsyncClient` solution of @sylvainOL seems to work but on closer inspection it...
> `typing-extensions` core Is this also needed for backwards compatibility with older Python versions (
I ran into a situation which is almost the opposite problem of the original one: not only a given attribute is deliberately accessible by both the instance and the class,...