strawberry-graphql 0.236.0__py3-none-any.whl → 0.236.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/types/lazy_type.py +6 -4
- {strawberry_graphql-0.236.0.dist-info → strawberry_graphql-0.236.1.dist-info}/METADATA +1 -1
- {strawberry_graphql-0.236.0.dist-info → strawberry_graphql-0.236.1.dist-info}/RECORD +6 -6
- {strawberry_graphql-0.236.0.dist-info → strawberry_graphql-0.236.1.dist-info}/LICENSE +0 -0
- {strawberry_graphql-0.236.0.dist-info → strawberry_graphql-0.236.1.dist-info}/WHEEL +0 -0
- {strawberry_graphql-0.236.0.dist-info → strawberry_graphql-0.236.1.dist-info}/entry_points.txt +0 -0
strawberry/types/lazy_type.py
CHANGED
@@ -5,7 +5,6 @@ import warnings
|
|
5
5
|
from dataclasses import dataclass
|
6
6
|
from pathlib import Path
|
7
7
|
from typing import (
|
8
|
-
TYPE_CHECKING,
|
9
8
|
Any,
|
10
9
|
ForwardRef,
|
11
10
|
Generic,
|
@@ -13,14 +12,14 @@ from typing import (
|
|
13
12
|
Tuple,
|
14
13
|
Type,
|
15
14
|
TypeVar,
|
15
|
+
Union,
|
16
16
|
cast,
|
17
17
|
)
|
18
|
-
|
19
|
-
if TYPE_CHECKING:
|
20
|
-
from typing_extensions import Self
|
18
|
+
from typing_extensions import Self
|
21
19
|
|
22
20
|
TypeName = TypeVar("TypeName")
|
23
21
|
Module = TypeVar("Module")
|
22
|
+
Other = TypeVar("Other")
|
24
23
|
|
25
24
|
|
26
25
|
@dataclass(frozen=True)
|
@@ -59,6 +58,9 @@ class LazyType(Generic[TypeName, Module]):
|
|
59
58
|
|
60
59
|
return cls(type_name, module, package)
|
61
60
|
|
61
|
+
def __or__(self, other: Other) -> Union[Self, Other]:
|
62
|
+
return Union[self, other]
|
63
|
+
|
62
64
|
def resolve_type(self) -> Type[Any]:
|
63
65
|
module = importlib.import_module(self.module, self.package)
|
64
66
|
main_module = sys.modules.get("__main__", None)
|
@@ -226,7 +226,7 @@ strawberry/types/fields/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
|
|
226
226
|
strawberry/types/fields/resolver.py,sha256=EoNFUbz_cV6QH_jHi5uMtgd5EnE_fnvbJPTWeNpYL6M,13992
|
227
227
|
strawberry/types/graphql.py,sha256=Hnt7RplzBdcthNYxYB4PA3LqffG99ICQSgSrDa28bJQ,717
|
228
228
|
strawberry/types/info.py,sha256=Y5nVRPJBwKaqT8CtSrMGpWdsgT_eW88dJXNwMAKNG0k,4750
|
229
|
-
strawberry/types/lazy_type.py,sha256=
|
229
|
+
strawberry/types/lazy_type.py,sha256=Nn4qsJA-FMRKddsh89wgXFwmMAKrX-kqRcJ0SnuAlIo,5110
|
230
230
|
strawberry/types/mutation.py,sha256=bS2WotWenRP-lKJazPIvuzpD4sfS3Rp5leq7-DPNS_I,11975
|
231
231
|
strawberry/types/nodes.py,sha256=TVQ4TWeJEK2vdtlQMXMjD8tb57PkuONhne4Orgzaf90,5114
|
232
232
|
strawberry/types/object_type.py,sha256=-LvRnigI5iK9SgfH82b7eLzXw6DswM2ad6ZVOBUU_sE,14952
|
@@ -248,8 +248,8 @@ strawberry/utils/logging.py,sha256=U1cseHGquN09YFhFmRkiphfASKCyK0HUZREImPgVb0c,7
|
|
248
248
|
strawberry/utils/operation.py,sha256=SSXxN-vMqdHO6W2OZtip-1z7y4_A-eTVFdhDvhKeLCk,1193
|
249
249
|
strawberry/utils/str_converters.py,sha256=KGd7QH90RevaJjH6SQEkiVVsb8KuhJr_wv5AsI7UzQk,897
|
250
250
|
strawberry/utils/typing.py,sha256=x_CONoYlbmha-VHu6mGNB_PBA1iejLE-giUF13zmVMY,14244
|
251
|
-
strawberry_graphql-0.236.
|
252
|
-
strawberry_graphql-0.236.
|
253
|
-
strawberry_graphql-0.236.
|
254
|
-
strawberry_graphql-0.236.
|
255
|
-
strawberry_graphql-0.236.
|
251
|
+
strawberry_graphql-0.236.1.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
|
252
|
+
strawberry_graphql-0.236.1.dist-info/METADATA,sha256=HqExGi7_C6FyJU1YMc-LTt6bP1_2Cn0Qk_QcGNYDirM,7821
|
253
|
+
strawberry_graphql-0.236.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
254
|
+
strawberry_graphql-0.236.1.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
|
255
|
+
strawberry_graphql-0.236.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{strawberry_graphql-0.236.0.dist-info → strawberry_graphql-0.236.1.dist-info}/entry_points.txt
RENAMED
File without changes
|