Comments (6)
Hmph, definitely a bug. Thanks for the report. Will attempt to fix for 2.7.2
from pydantic.
@jherbel We have a similar problem but we are not using Sequence, I'm wondering if you have any hints on what is the issue here and how to develop a workaround for specific code base?
from pydantic.
Hi @cielecki, by chance, I discovered yesterday that list
instead of Sequence
works in the scenario above. Maybe this helps, though you wrote that you are not using Sequence
. Unfortunately, I cannot give any tips regarding a general workaround.
from pydantic.
@jherbel thanks
I decided to go with just going with "Any" in few places in order to make it work in the short term ...
from pydantic.
Hi folks, when did this issue crop up for you?
from pydantic.
Looks like this was introduced in the 2.6.0 release - moving to the 2.8 milestone - still a priority, but going to focus on the 2.7 patch this week. Will send updates soon!
from pydantic.
Related Issues (20)
- `model_json_schema()` turns `float` type to `number` type HOT 6
- __repr__ recursion HOT 4
- Before Model Validators cause type checking issues HOT 1
- Field title with same name as model class leads to unexpected schema behavior HOT 2
- model_dump include/exclude attributes by alias HOT 2
- Memory leak in pydantic model_validate from sqlalchemy model HOT 11
- Input should be a valid datetime, invalid timezone sign HOT 2
- Switching pydantic from 2.6.4 to 2.7.1 removes the dependancies on annotated-types and pydantic-core behind SonartypeNexus Repository Proxy HOT 2
- JSON schemas with circular references HOT 1
- validate_call trying to parse an enum.StrEnum as an int HOT 2
- Clarify documentation of strip_whitespace HOT 2
- Add Python fractions as a natively supported type HOT 1
- Enhance UrlConstraints with allowed_hosts attribute. HOT 1
- Pydantic dataclasses cannot be used as Annotated Validators HOT 1
- JsonValue is contravariant, should be covariant HOT 5
- Cannot use `str` as argument to PlainSerializer HOT 2
- Expose normalization functionality in EmailStr HOT 5
- Unable to Deserialize Model with BaseModel as Dictionary Keys HOT 1
- `isinstance` for v2 models is over 20 times slower than v1 models HOT 2
- Custom serializer discarded when WrapSerializer is used 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 pydantic.