strawberry-graphql 0.243.0__py3-none-any.whl → 0.243.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- strawberry/ext/mypy_plugin.py +8 -1
- {strawberry_graphql-0.243.0.dist-info → strawberry_graphql-0.243.1.dist-info}/METADATA +1 -1
- {strawberry_graphql-0.243.0.dist-info → strawberry_graphql-0.243.1.dist-info}/RECORD +6 -6
- {strawberry_graphql-0.243.0.dist-info → strawberry_graphql-0.243.1.dist-info}/LICENSE +0 -0
- {strawberry_graphql-0.243.0.dist-info → strawberry_graphql-0.243.1.dist-info}/WHEEL +0 -0
- {strawberry_graphql-0.243.0.dist-info → strawberry_graphql-0.243.1.dist-info}/entry_points.txt +0 -0
strawberry/ext/mypy_plugin.py
CHANGED
@@ -481,7 +481,14 @@ def strawberry_pydantic_class_callback(ctx: ClassDefContext) -> None:
|
|
481
481
|
# Based on pydantic's default value
|
482
482
|
# https://github.com/pydantic/pydantic/pull/9606/files#diff-469037bbe55bbf9aa359480a16040d368c676adad736e133fb07e5e20d6ac523R1066
|
483
483
|
extra["force_typevars_invariant"] = False
|
484
|
-
|
484
|
+
if PYDANTIC_VERSION >= (2, 9, 0):
|
485
|
+
extra["model_strict"] = model_type.type.metadata[
|
486
|
+
PYDANTIC_METADATA_KEY
|
487
|
+
]["config"].get("strict", False)
|
488
|
+
extra["is_root_model_root"] = any(
|
489
|
+
"pydantic.root_model.RootModel" in base.fullname
|
490
|
+
for base in model_type.type.mro[:-1]
|
491
|
+
)
|
485
492
|
add_method(
|
486
493
|
ctx,
|
487
494
|
"to_pydantic",
|
@@ -95,7 +95,7 @@ strawberry/ext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
95
95
|
strawberry/ext/dataclasses/LICENSE,sha256=WZgm35K_3NJwLqxpEHJJi7CWxVrwTumEz5D3Dtd7WnA,13925
|
96
96
|
strawberry/ext/dataclasses/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
97
97
|
strawberry/ext/dataclasses/dataclasses.py,sha256=fshCPQm1o4q1AwzmQzdlBIQ_JUNnwSlvBfsLZ0zIHuk,2299
|
98
|
-
strawberry/ext/mypy_plugin.py,sha256=
|
98
|
+
strawberry/ext/mypy_plugin.py,sha256=9avF3kOcu7TLfsbqOHKBSOrtqgzuSTCK7uA66HUB6ok,20559
|
99
99
|
strawberry/extensions/__init__.py,sha256=SZ-YEMnxAzoDZFo-uHXMHOaY_PPkYm1muPpK4ccJ3Xk,1248
|
100
100
|
strawberry/extensions/add_validation_rules.py,sha256=abkOaXG-unAZj2xL2sspeUXpZKBCpj5Kr5h7TreN4gM,1338
|
101
101
|
strawberry/extensions/base_extension.py,sha256=Wf-Xu38lPXXBPuhsxpMi18yL5oH0uoskPhs08hfSYXg,2362
|
@@ -245,8 +245,8 @@ strawberry/utils/logging.py,sha256=U1cseHGquN09YFhFmRkiphfASKCyK0HUZREImPgVb0c,7
|
|
245
245
|
strawberry/utils/operation.py,sha256=SSXxN-vMqdHO6W2OZtip-1z7y4_A-eTVFdhDvhKeLCk,1193
|
246
246
|
strawberry/utils/str_converters.py,sha256=KGd7QH90RevaJjH6SQEkiVVsb8KuhJr_wv5AsI7UzQk,897
|
247
247
|
strawberry/utils/typing.py,sha256=3xws5kxSQGsp8BnYyUwClvxXNzZakMAuOPoq1rjHRuk,14252
|
248
|
-
strawberry_graphql-0.243.
|
249
|
-
strawberry_graphql-0.243.
|
250
|
-
strawberry_graphql-0.243.
|
251
|
-
strawberry_graphql-0.243.
|
252
|
-
strawberry_graphql-0.243.
|
248
|
+
strawberry_graphql-0.243.1.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
|
249
|
+
strawberry_graphql-0.243.1.dist-info/METADATA,sha256=pUMQj5rzTkjqWbNbKuzGnpZWoNaWKyyhKnkyKwzsvx0,7707
|
250
|
+
strawberry_graphql-0.243.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
251
|
+
strawberry_graphql-0.243.1.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
|
252
|
+
strawberry_graphql-0.243.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{strawberry_graphql-0.243.0.dist-info → strawberry_graphql-0.243.1.dist-info}/entry_points.txt
RENAMED
File without changes
|