Ernesto Revilla

Results 49 comments of Ernesto Revilla

I have this exact error too, also with odmantic 0.3.5 in the following enviroment ### Current behaviour ``` python >>> import typing >>> import datetime >>> import odmantic >>> class...

I debugged this, and it happens exactly here: https://github.com/art049/odmantic/blob/e58b987c09898744a3bca66d389f284ab1d28e87/odmantic/model.py#L180 Instead of creating a new type, the args for composed types are change inline. For python >= 3.9 I found that...

When will be the next release? I would love to have this feature. But I really need sequences over EmbeddedModels, and I don't know if I should open a new...

I have implemented some naif migration system (currently only forward migrations) just creating a collection with the already executed migration steps and running the new ones. All migration steps are...

@art049 I was able to tweak odmantic.model.ModelMetaclass.__new__ a bit as experiment. Here goes en example: ```python from pydantic import BaseModel, Field import odmantic class Publisher(BaseModel): name: str founded: int =...

@art049 It's not a fix, but a hack (or tweak). Annotations should still be available. But I saw that the tests fail. I didn't do a complete checkout and run...

I have to say in favour of the current implementation after using ODMantic that the Domain Object Model and the Persistence Object Model are different and that this forces us...

Hi, thanks for your quick answer. Adding object Id(s) to reference files could be a good way to start. Lazy loading is already provided by motor AFAIK and streaming shouldn't...

I produced a complete example with unit tests in [this comment](https://github.com/miguelgrinberg/python-socketio/issues/332#issuecomment-712928157) of issue miguelgrinberg/python-socketio#332, although it doesn't use `TestClient.websocket` for testing, but the standard `python-socketio` client. Currently, for this to...

@Harsha-BR, try to `sio.connect('http://localhost:8000', socketio_path='/subapi/socket.io/')`