engin 0.0.12__py3-none-any.whl → 0.0.13__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.
- engin/_type_utils.py +3 -2
- {engin-0.0.12.dist-info → engin-0.0.13.dist-info}/METADATA +1 -1
- {engin-0.0.12.dist-info → engin-0.0.13.dist-info}/RECORD +6 -6
- {engin-0.0.12.dist-info → engin-0.0.13.dist-info}/WHEEL +0 -0
- {engin-0.0.12.dist-info → engin-0.0.13.dist-info}/entry_points.txt +0 -0
- {engin-0.0.12.dist-info → engin-0.0.13.dist-info}/licenses/LICENSE +0 -0
engin/_type_utils.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import typing
|
2
2
|
from dataclasses import dataclass
|
3
|
+
from types import UnionType
|
3
4
|
from typing import Any
|
4
5
|
|
5
|
-
_implict_modules = ["builtins", "typing", "collections.abc"]
|
6
|
+
_implict_modules = ["builtins", "typing", "collections.abc", "types"]
|
6
7
|
|
7
8
|
|
8
9
|
@dataclass(frozen=True, eq=True, slots=True)
|
@@ -43,7 +44,7 @@ class TypeId:
|
|
43
44
|
def _args_to_str(type_: Any) -> str:
|
44
45
|
args = typing.get_args(type_)
|
45
46
|
if args:
|
46
|
-
arg_str = f"{type_.__name__}["
|
47
|
+
arg_str = "Union[" if isinstance(type_, UnionType) else f"{type_.__name__}["
|
47
48
|
for idx, arg in enumerate(args):
|
48
49
|
if isinstance(arg, list):
|
49
50
|
arg_str += "["
|
@@ -6,15 +6,15 @@ engin/_engin.py,sha256=MTE4MkLrK45h0Nv7p5H92Kv5URa1nX246B9Pp1JkM3A,9134
|
|
6
6
|
engin/_exceptions.py,sha256=fsc4pTOIGHUh0x7oZhEXPJUTE268sIhswLoiqXaudiw,635
|
7
7
|
engin/_graph.py,sha256=1pMB0cr--uS0XJycDb1rS_X45RBpoyA6NkKqbeSuz1Q,1628
|
8
8
|
engin/_lifecycle.py,sha256=_jQnGFj4RYXsxMpcXPJQagFOwnoTVh7oSN8oUYoYuW0,3246
|
9
|
-
engin/_type_utils.py,sha256=
|
9
|
+
engin/_type_utils.py,sha256=EGyKZWuE2ZwuMlSgDhM1znF8giaEET1vcVoQcdGxFGQ,2210
|
10
10
|
engin/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
11
|
engin/ext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
12
|
engin/ext/asgi.py,sha256=RUxkG03VTlvI6EG19c1nEJY8FnQw6MQwolfJSFnhUFE,3168
|
13
13
|
engin/ext/fastapi.py,sha256=GO3AIZNQ69MtzbWuACffx_6Pp34wC5a5Fi_fIAaQvTg,6186
|
14
14
|
engin/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
15
15
|
engin/scripts/graph.py,sha256=por62FkzcWx72V2Ha9sIoki-o99fe2Ifm1w-mdoHZIQ,5922
|
16
|
-
engin-0.0.
|
17
|
-
engin-0.0.
|
18
|
-
engin-0.0.
|
19
|
-
engin-0.0.
|
20
|
-
engin-0.0.
|
16
|
+
engin-0.0.13.dist-info/METADATA,sha256=dLFQgnZcD2c_xfKK-Z-Mx_f6_Q0kCta-XqNgqrEqRmo,2291
|
17
|
+
engin-0.0.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
18
|
+
engin-0.0.13.dist-info/entry_points.txt,sha256=Dehk4j5nK6zyuQtgOSRAoLE609V6eLzEp32bjqhO62Q,64
|
19
|
+
engin-0.0.13.dist-info/licenses/LICENSE,sha256=XHh5LPUPKZWTBqBv2xxN2RU7D59nHoiJGb5RIt8f45w,1070
|
20
|
+
engin-0.0.13.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|