omlish 0.0.0.dev50__py3-none-any.whl → 0.0.0.dev51__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.
- omlish/__about__.py +2 -2
- omlish/dispatch/dispatch.py +8 -2
- {omlish-0.0.0.dev50.dist-info → omlish-0.0.0.dev51.dist-info}/METADATA +1 -1
- {omlish-0.0.0.dev50.dist-info → omlish-0.0.0.dev51.dist-info}/RECORD +8 -8
- {omlish-0.0.0.dev50.dist-info → omlish-0.0.0.dev51.dist-info}/LICENSE +0 -0
- {omlish-0.0.0.dev50.dist-info → omlish-0.0.0.dev51.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev50.dist-info → omlish-0.0.0.dev51.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev50.dist-info → omlish-0.0.0.dev51.dist-info}/top_level.txt +0 -0
omlish/__about__.py
CHANGED
omlish/dispatch/dispatch.py
CHANGED
@@ -25,12 +25,18 @@ def get_impl_func_cls_set(func: ta.Callable) -> frozenset[type]:
|
|
25
25
|
if not ann:
|
26
26
|
raise TypeError(f'Invalid impl func: {func!r}')
|
27
27
|
|
28
|
+
def erase(a):
|
29
|
+
if isinstance(a, rfl.Generic):
|
30
|
+
return a.cls
|
31
|
+
else:
|
32
|
+
return check.isinstance(a, type)
|
33
|
+
|
28
34
|
_, cls = next(iter(ta.get_type_hints(func).items()))
|
29
35
|
rty = rfl.type_(cls)
|
30
36
|
if isinstance(rty, rfl.Union):
|
31
|
-
ret = frozenset(
|
37
|
+
ret = frozenset(erase(arg) for arg in rty.args)
|
32
38
|
else:
|
33
|
-
ret = frozenset([
|
39
|
+
ret = frozenset([erase(rty)])
|
34
40
|
|
35
41
|
_IMPL_FUNC_CLS_SET_CACHE[func] = ret
|
36
42
|
return ret
|
@@ -1,5 +1,5 @@
|
|
1
1
|
omlish/.manifests.json,sha256=sAddTbCUKdX0UYA4PeZ_z9JKF0vyzEpFYWq1tAAl9bw,1091
|
2
|
-
omlish/__about__.py,sha256=
|
2
|
+
omlish/__about__.py,sha256=jc5K7hc6tkDx6B2eK-ieJvhYrFDbPJ4znzwOrHgZmW0,2919
|
3
3
|
omlish/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
omlish/argparse.py,sha256=Vr70_85EVLJLgEkRtwOr264tMRtqtlN7ncFfXRUk5aM,6914
|
5
5
|
omlish/c3.py,sha256=4vogWgwPb8TbNS2KkZxpoWbwjj7MuHG2lQG-hdtkvjI,8062
|
@@ -105,7 +105,7 @@ omlish/diag/replserver/server.py,sha256=5pRjBn-Vz8gtu45756ycdbJe58C_xrB9rElPytr6
|
|
105
105
|
omlish/dispatch/__init__.py,sha256=GsiGJ91NKiQptSROtnCSkrZExBkvfDwYvdoTu5dBqF0,117
|
106
106
|
omlish/dispatch/_dispatch2.py,sha256=v3tCNyxGpOwY8qTwdp54TlM8mG6OVwtQoUZfYJ_griU,1756
|
107
107
|
omlish/dispatch/_dispatch3.py,sha256=Vnu5DfoPWFJLodudBqoZBXGTi2wYk-Az56MXJgdQvwc,2608
|
108
|
-
omlish/dispatch/dispatch.py,sha256=
|
108
|
+
omlish/dispatch/dispatch.py,sha256=8XQiLVoAq4u2oO0DnDSXQB9Q5qDk569l4CIFBqwDSyc,3847
|
109
109
|
omlish/dispatch/functions.py,sha256=S8ElsLi6DKxTdtFGigWaF0vAquwy2sK-3f4iRLaYq70,1522
|
110
110
|
omlish/dispatch/methods.py,sha256=XHjwwC9Gn4iDWxbyLAcbdSwRgVaq-8Bnn5cAwf5oZdA,5403
|
111
111
|
omlish/docker/__init__.py,sha256=LGL5ByHrd7EaQnIDO6eLQvovDamngUiTfnpThV_4-MA,437
|
@@ -339,9 +339,9 @@ omlish/text/delimit.py,sha256=ubPXcXQmtbOVrUsNh5gH1mDq5H-n1y2R4cPL5_DQf68,4928
|
|
339
339
|
omlish/text/glyphsplit.py,sha256=Ug-dPRO7x-OrNNr8g1y6DotSZ2KH0S-VcOmUobwa4B0,3296
|
340
340
|
omlish/text/indent.py,sha256=6Jj6TFY9unaPa4xPzrnZemJ-fHsV53IamP93XGjSUHs,1274
|
341
341
|
omlish/text/parts.py,sha256=7vPF1aTZdvLVYJ4EwBZVzRSy8XB3YqPd7JwEnNGGAOo,6495
|
342
|
-
omlish-0.0.0.
|
343
|
-
omlish-0.0.0.
|
344
|
-
omlish-0.0.0.
|
345
|
-
omlish-0.0.0.
|
346
|
-
omlish-0.0.0.
|
347
|
-
omlish-0.0.0.
|
342
|
+
omlish-0.0.0.dev51.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
343
|
+
omlish-0.0.0.dev51.dist-info/METADATA,sha256=dX7TOPWFihpNQKvxpeumwoK_bZt8O4IVpS0__xA04u0,3817
|
344
|
+
omlish-0.0.0.dev51.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
345
|
+
omlish-0.0.0.dev51.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
|
346
|
+
omlish-0.0.0.dev51.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
|
347
|
+
omlish-0.0.0.dev51.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|