Comments (3)
Thanks π , I will have a look with Pycharm before merging #39 to fix this issue.
from odmantic.
Hmm, i think this error appears because copy is currently raising a non implemented error.
It should be fixed by #39 .
from odmantic.
Hmm, i think this error appears because copy is currently raising a non implemented error.
It should be fixed by #39 .
It's related, but this is not the reason :)
PyCharm knows that with "Pythonic way" every abrastract method should be overrided by child class.
I've found only one way to fix it - add copy
method to Model
.
But I still believe that another way exists :)
from odmantic.
Related Issues (20)
- Using the union operator in model breaks HOT 1
- FastAPI schema can not show the fields in parent odmantic.Model class
- Add support for Pydantic V2 HOT 13
- Odmantic model names in openapi.json from FastAPI have __pydantic_model__ suffix
- ζδΉζεΊ
- Pydantic URLs have stopped working
- Support other document store
- Using deprecated `pydantic.datetime_parse:parse_datetime` in Pydantic HOT 1
- Can't start dev container: multi-python is deprecated
- Optional EmbeddedModel not working HOT 3
- Just started following tutorial in https://art049.github.io/odmantic/ and an error HOT 3
- Any specific reason to not support model inheritance?
- `Optional[str]` triggers `int_parsing` instead of string parsing when used for `odmantic.Model` HOT 4
- Multiple sorting criteria HOT 1
- Mypy issues for odmantic 1.0.0 HOT 2
- Trying to use db_engine.configure_database([User]) HOT 1
- Support Inheritance
- regex is removed in pydantic 2.x this causes the Field class to throw an exception if its used. HOT 1
- Support for Optional types as X | None HOT 1
- Embedded models have to be defined before any normal models that reference them HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from odmantic.