Miksus / red-bird

Repository Patterns for Python
https://red-bird.readthedocs.io
MIT License
163 stars 22 forks source link

Tempo fix for v2 compatibility #48

Open ManiMozaffar opened 1 year ago

ManiMozaffar commented 1 year ago

There's another repo where I tried to support pydantic v2 instead of v1, but that's alot of work, so for now I think best solution would be to use v1 but in v2, this would make compatible for tools that are already based on v2.

vamshiaruru32 commented 1 year ago

Hello! This gives me errors with

NameError: Field name "session" shadows an attribute in parent "RedBase"; you might want to use a different field name with "alias='session'".
/usr/local/lib/python3.11/site-packages/pydantic/_internal/_fields.py:127: UserWarning: Field "model_orm" has conflict with protected namespace "model_".

Not sure if it is specific to this fork or if it is redbird in general.