omlish 0.0.0.dev138__py3-none-any.whl → 0.0.0.dev140__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- omlish/__about__.py +2 -2
- omlish/lite/cached.py +8 -0
- {omlish-0.0.0.dev138.dist-info → omlish-0.0.0.dev140.dist-info}/METADATA +1 -1
- {omlish-0.0.0.dev138.dist-info → omlish-0.0.0.dev140.dist-info}/RECORD +8 -8
- {omlish-0.0.0.dev138.dist-info → omlish-0.0.0.dev140.dist-info}/LICENSE +0 -0
- {omlish-0.0.0.dev138.dist-info → omlish-0.0.0.dev140.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev138.dist-info → omlish-0.0.0.dev140.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev138.dist-info → omlish-0.0.0.dev140.dist-info}/top_level.txt +0 -0
omlish/__about__.py
CHANGED
omlish/lite/cached.py
CHANGED
@@ -4,6 +4,8 @@ import typing as ta
|
|
4
4
|
|
5
5
|
T = ta.TypeVar('T')
|
6
6
|
|
7
|
+
CallableT = ta.TypeVar('CallableT', bound=ta.Callable)
|
8
|
+
|
7
9
|
|
8
10
|
class _cached_nullary: # noqa
|
9
11
|
def __init__(self, fn):
|
@@ -24,3 +26,9 @@ class _cached_nullary: # noqa
|
|
24
26
|
|
25
27
|
def cached_nullary(fn): # ta.Callable[..., T]) -> ta.Callable[..., T]:
|
26
28
|
return _cached_nullary(fn)
|
29
|
+
|
30
|
+
|
31
|
+
def static_init(fn: CallableT) -> CallableT:
|
32
|
+
fn = cached_nullary(fn)
|
33
|
+
fn()
|
34
|
+
return fn
|
@@ -1,5 +1,5 @@
|
|
1
1
|
omlish/.manifests.json,sha256=RX24SRc6DCEg77PUVnaXOKCWa5TF_c9RQJdGIf7gl9c,1135
|
2
|
-
omlish/__about__.py,sha256=
|
2
|
+
omlish/__about__.py,sha256=Inm7Qwi_kQDtseIRKJqAl63A0iaZZz4X6_jvfpXwKjM,3379
|
3
3
|
omlish/__init__.py,sha256=SsyiITTuK0v74XpKV8dqNaCmjOlan1JZKrHQv5rWKPA,253
|
4
4
|
omlish/argparse.py,sha256=cqKGAqcxuxv_s62z0gq29L9KAvg_3-_rFvXKjVpRJjo,8126
|
5
5
|
omlish/c3.py,sha256=ubu7lHwss5V4UznbejAI0qXhXahrU01MysuHOZI9C4U,8116
|
@@ -304,7 +304,7 @@ omlish/lifecycles/manager.py,sha256=Au66KaO-fI-SEJALaPUJsCHYW2GE20xextk1wKn2BEU,
|
|
304
304
|
omlish/lifecycles/states.py,sha256=zqMOU2ZU-MDNnWuwauM3_anIAiXM8LoBDElDEraptFg,1292
|
305
305
|
omlish/lifecycles/transitions.py,sha256=qQtFby-h4VzbvgaUqT2NnbNumlcOx9FVVADP9t83xj4,1939
|
306
306
|
omlish/lite/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
|
307
|
-
omlish/lite/cached.py,sha256=
|
307
|
+
omlish/lite/cached.py,sha256=rrc_JEv3sKJIEmCBB6g7DwPvkb1hNFmhg0mxkvuXDJw,848
|
308
308
|
omlish/lite/check.py,sha256=pQC412ffe_Zh7eHa4C1UYn6fA71Ls1vpVM0ZIOroPAY,1765
|
309
309
|
omlish/lite/contextmanagers.py,sha256=DRarS2gx15tbse1YzyI8ZLdBmWYjFgmKPe-i4CSNDYg,1458
|
310
310
|
omlish/lite/docker.py,sha256=3IVZZtIm7-UdB2SwArmN_MosTva1_KifyYp3YWjODbE,337
|
@@ -492,9 +492,9 @@ omlish/text/glyphsplit.py,sha256=Ug-dPRO7x-OrNNr8g1y6DotSZ2KH0S-VcOmUobwa4B0,329
|
|
492
492
|
omlish/text/indent.py,sha256=6Jj6TFY9unaPa4xPzrnZemJ-fHsV53IamP93XGjSUHs,1274
|
493
493
|
omlish/text/parts.py,sha256=7vPF1aTZdvLVYJ4EwBZVzRSy8XB3YqPd7JwEnNGGAOo,6495
|
494
494
|
omlish/text/random.py,sha256=jNWpqiaKjKyTdMXC-pWAsSC10AAP-cmRRPVhm59ZWLk,194
|
495
|
-
omlish-0.0.0.
|
496
|
-
omlish-0.0.0.
|
497
|
-
omlish-0.0.0.
|
498
|
-
omlish-0.0.0.
|
499
|
-
omlish-0.0.0.
|
500
|
-
omlish-0.0.0.
|
495
|
+
omlish-0.0.0.dev140.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
496
|
+
omlish-0.0.0.dev140.dist-info/METADATA,sha256=mkn2twW5nTgiD2FwYfGLuqMQms1rrSm8BW_yRKoxRzY,4173
|
497
|
+
omlish-0.0.0.dev140.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
498
|
+
omlish-0.0.0.dev140.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
|
499
|
+
omlish-0.0.0.dev140.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
|
500
|
+
omlish-0.0.0.dev140.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|