Feat: add support for operations on IRI lists, add pandas-like queries#11
Feat: add support for operations on IRI lists, add pandas-like queries#11simontaurus merged 8 commits intomainfrom
Conversation
…filters - Port LinkedBaseModelList, OOFieldInfo, query()/[] operator from v2 to v1 - Add _constructing guard to prevent field-name shadow errors during class construction in both v1 and v2 metaclasses - Fix None-safety in LinkedBaseModelList.__init__ (check before get_iri()) - Restructure query_test.py to cover both pydantic v1 and v2
by redirecting model_fields access to the class instead of the instance
📊 Benchmark ResultsClick to see benchmark comparisonThreshold: 1.3x (30% slower triggers a regression warning) Note: Benchmarks are informational only and won't fail the build. 💡 Tip: Download the |
📊 Benchmark ResultsClick to see benchmark comparisonThreshold: 1.3x (30% slower triggers a regression warning) Note: Benchmarks are informational only and won't fail the build. 💡 Tip: Download the |
mcs._constructing set the flag on whichever metaclass subclass was calling __new__, but __getattribute__ checked type(self)._constructing which resolves to the base metaclass. When a subclass metaclass like QuantityValueMetaclass triggered construction, base classes using LinkedBaseModelMetaClass still had _constructing=False, causing false-positive field-name collision errors for fields like "type". Also rename query/_query to oold_query/_oold_query to avoid collisions with downstream "query" field names.
📊 Benchmark ResultsClick to see benchmark comparisonThreshold: 1.3x (30% slower triggers a regression warning) Note: Benchmarks are informational only and won't fail the build. 💡 Tip: Download the |
0.55.0 dropped pydantic_v1 support
📊 Benchmark ResultsClick to see benchmark comparisonThreshold: 1.3x (30% slower triggers a regression warning) Note: Benchmarks are informational only and won't fail the build. 💡 Tip: Download the |
No description provided.