Comments (4)
@gotofritz @albertferras-vrf this is included now :)
It still hasn't been released though. There are a few other pydantic related issues like #442 that I'd like to take care of before doing another release. You can expect the release in two weeks though :)
from polyfactory.
Thanks.
from polyfactory.
@gotofritz, thanks for pointing this out!
However, I don't think this is a bug since it's just not supported. I think this will count as a feature request and it should be possible to support this as well.
from polyfactory.
+1 on this request. This is preventing us from upgrading to pydantic v2 on many repositories (we have many services with distinct version of models which we can't upgrade all at once) . We're basically moving to other lib alternatives and having to rewrite tests because of this.
from polyfactory.
Related Issues (20)
- Bug: settings `__set_as_default_factory_for_type__ ` to `True` on base factory fails
- Bug: Pydantic fields with constraints and multiple type hints cause `ParameterException` HOT 1
- Bug: Optional constrained types do not work HOT 8
- Bug: ModelFactory can not generate list of classes with a Pydantic field alias HOT 1
- bug: support column.type `impl` attribute HOT 1
- Bug: Setting `ge` and `multiple_of` but not `le` constraints causes invalid values to be generated HOT 2
- Docs: Add example to use `PydanticFactory` with SQLAlchemy persistence HOT 5
- Bug: Data generated incorrectly from nested Annotated HOT 4
- Bug: Try to use SQLAlchemyFactory for model with column_property HOT 4
- Bug: UUIDBase ID Value Changed from UUID to Bytes HOT 4
- Enhancement: Support for dictionaries with Pydantic models as value, e.g. dict[str, PydanticClass] HOT 1
- Bug: Invalid Coverage for Optional Fields with Annotated Constraint
- Bug: pyright incompatability HOT 1
- Any not supported in provider_map
- Doubt in usage of polyfactory HOT 1
- Bug: Optional lists in coverage produce nested lists HOT 1
- Bug: sqlalchemy factory `column_property` in `get_model_fields` not working HOT 3
- Docs: Document functions/classes/methods that have no docstrings and are missing from the built docs
- Enhancement(Infra): Replace `black` with `ruff format`
- Bug(CI): Updated lockfile changes type checking CI causing failures
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 polyfactory.