-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pydantic v2 Overhaul [DNM yet] #321
base: master
Are you sure you want to change the base?
Commits on Aug 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4777b4b - Browse repository at this point
Copy the full SHA 4777b4bView commit details
Commits on Aug 3, 2023
-
Finish initial pass converting to v2 pydantic API. Have not done any …
…testing so very much a WIP still.
Configuration menu - View commit details
-
Copy full SHA for 538a62f - Browse repository at this point
Copy the full SHA 538a62fView commit details
Commits on Aug 4, 2023
-
More headway, starting on tests. have to be careful with serializers …
…and only use json on numpy arrays for now.
Configuration menu - View commit details
-
Copy full SHA for 5bd215b - Browse repository at this point
Copy the full SHA 5bd215bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 76b565b - Browse repository at this point
Copy the full SHA 76b565bView commit details
Commits on Aug 9, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 248676d - Browse repository at this point
Copy the full SHA 248676dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a2e3501 - Browse repository at this point
Copy the full SHA a2e3501View commit details
Commits on Aug 10, 2023
-
This is the dumbest dependency tree resolution. Autodoc-pydantic requ…
…ires python 3.7.1+, but apparently pinning python to `^3.7` which is supposed to be equivalent to `>=3.7, <4.0` doesn't let the stack resolve, so pinning python to `^3.7.1` was the correct solution, even though it should have resolved...
Configuration menu - View commit details
-
Copy full SHA for 86d88f9 - Browse repository at this point
Copy the full SHA 86d88f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7f4549 - Browse repository at this point
Copy the full SHA e7f4549View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b4c977 - Browse repository at this point
Copy the full SHA 4b4c977View commit details -
So apparently I made a fun problem where black and isort undid each o…
…ther. I moved the commented block in case we needed to change it later.
Configuration menu - View commit details
-
Copy full SHA for 541beb0 - Browse repository at this point
Copy the full SHA 541beb0View commit details -
Types from typing before Python 3.10 didn't have a
__name__
attribu……te, so split it up the hard way since there doesn't appear to be any other way to acess the name. This is the single most frustrating bug to track down since the error is thrown in pydantic but doesn't backtrace through the pydantic.__getattr__ -> `AutoPydanticDocGenerator` -> `__get__` -> `doc_formatter` -> `annotation.__name__` function because all the exceptions are caught the whole way up. GYA!
Configuration menu - View commit details
-
Copy full SHA for e32570b - Browse repository at this point
Copy the full SHA e32570bView commit details
Commits on Aug 11, 2023
-
A found an even more frustrating bug with Numpy NDArray from numpy.ty…
…ping and pre Python3.9 in tandem with typing_extensions Annotation Source information: beartype/beartype#42 Annotated checks against instances of _GenericAlias to see if you can support Data[type_info], e.g. NDArray[int] (in Python types since 3.9, and kinda of as _GenricAlias before that.) Prior to 3.9, Numpy implemented their own version of _GenericAlias which isn't Python _GenericAlias, so the types are not considered "Generic" when Annotated[NDArray, Metadata][type_info] does its thing. So. This fix code does the heavy lifting to re-cast the NDArray type with _GenericAlias from python typing. I've tried to reuse as much data from NDArray as I possibly can and still use np.ndarray (which is not np.typing.NDArray) to still correctly type hint np.ndarrays.
Configuration menu - View commit details
-
Copy full SHA for 6201290 - Browse repository at this point
Copy the full SHA 6201290View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad7d43b - Browse repository at this point
Copy the full SHA ad7d43bView commit details
Commits on Aug 15, 2023
-
Fixed a serialization problem in Datum because you cannot chain seria…
…lization wrappers together. Who knew? Also fixed an issue where the default `model_dump` wasn't calling the correct settings.
Configuration menu - View commit details
-
Copy full SHA for a4d0ed2 - Browse repository at this point
Copy the full SHA a4d0ed2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37fcc09 - Browse repository at this point
Copy the full SHA 37fcc09View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31f0b7c - Browse repository at this point
Copy the full SHA 31f0b7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad3b633 - Browse repository at this point
Copy the full SHA ad3b633View commit details
Commits on Aug 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6af962b - Browse repository at this point
Copy the full SHA 6af962bView commit details
Commits on Aug 30, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 01f19ae - Browse repository at this point
Copy the full SHA 01f19aeView commit details -
Fixed typo in Array serialization to JSON where flatten was not calle…
…d as a function first before calling tolist
Configuration menu - View commit details
-
Copy full SHA for f2b5989 - Browse repository at this point
Copy the full SHA f2b5989View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ca4b14 - Browse repository at this point
Copy the full SHA 2ca4b14View commit details -
For serializing models, just try dumping them with model_dump_json wh…
…ich calls different logic overall than to_jsonable_python for some reason I don't understand
Configuration menu - View commit details
-
Copy full SHA for 75e6aee - Browse repository at this point
Copy the full SHA 75e6aeeView commit details