omlish 0.0.0.dev181__py3-none-any.whl → 0.0.0.dev183__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
omlish/__about__.py CHANGED
@@ -1,5 +1,5 @@
1
- __version__ = '0.0.0.dev181'
2
- __revision__ = '4fd2912af095fc631208afe32a5d86f00406c595'
1
+ __version__ = '0.0.0.dev183'
2
+ __revision__ = 'f68a53bdac70a0fdce9deb06eb6d944e10517e34'
3
3
 
4
4
 
5
5
  #
omlish/lite/marshal.py CHANGED
@@ -318,6 +318,17 @@ def register_type_obj_marshaler(ty: type, om: ObjMarshaler) -> None:
318
318
  _REGISTERED_OBJ_MARSHALERS_BY_TYPE[ty] = om
319
319
 
320
320
 
321
+ def register_single_field_type_obj_marshaler(fld, ty=None):
322
+ def inner(ty): # noqa
323
+ register_type_obj_marshaler(ty, SingleFieldObjMarshaler(ty, fld))
324
+ return ty
325
+
326
+ if ty is not None:
327
+ return inner(ty)
328
+ else:
329
+ return inner
330
+
331
+
321
332
  ##
322
333
 
323
334
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omlish
3
- Version: 0.0.0.dev181
3
+ Version: 0.0.0.dev183
4
4
  Summary: omlish
5
5
  Author: wrmsr
6
6
  License: BSD-3-Clause
@@ -1,5 +1,5 @@
1
1
  omlish/.manifests.json,sha256=lRkBDFxlAbf6lN5upo3WSf-owW8YG1T21dfpbQL-XHM,7598
2
- omlish/__about__.py,sha256=CAjBHMClKLB5JuNKZtBFtVJRGc1pc3fxMPUC98U0gaM,3409
2
+ omlish/__about__.py,sha256=UjpmFU-qzpQaeNY9Q6lJIx73pbzgNB_qy_bM_Cq6ByY,3409
3
3
  omlish/__init__.py,sha256=SsyiITTuK0v74XpKV8dqNaCmjOlan1JZKrHQv5rWKPA,253
4
4
  omlish/c3.py,sha256=ubu7lHwss5V4UznbejAI0qXhXahrU01MysuHOZI9C4U,8116
5
5
  omlish/cached.py,sha256=UI-XTFBwA6YXWJJJeBn-WkwBkfzDjLBBaZf4nIJA9y0,510
@@ -383,7 +383,7 @@ omlish/lite/dataclasses.py,sha256=M6UD4VwGo0Ky7RNzKWbO0IOy7iBZVCIbTiC6EYbFnX8,10
383
383
  omlish/lite/inject.py,sha256=qBUftFeXMiRgANYbNS2e7TePMYyFAcuLgsJiLyMTW5o,28769
384
384
  omlish/lite/json.py,sha256=7-02Ny4fq-6YAu5ynvqoijhuYXWpLmfCI19GUeZnb1c,740
385
385
  omlish/lite/logs.py,sha256=CWFG0NKGhqNeEgryF5atN2gkPYbUdTINEw_s1phbINM,51
386
- omlish/lite/marshal.py,sha256=O_v_slgjAAiSGWComdRhqLXdumuIlBDc3SvoG_p00QM,15863
386
+ omlish/lite/marshal.py,sha256=2ybMvKqhKIM4HyUxffzgKM2DOeOmiLgQ1FTNVdoji1U,16124
387
387
  omlish/lite/maybes.py,sha256=7OlHJ8Q2r4wQ-aRbZSlJY7x0e8gDvufFdlohGEIJ3P4,833
388
388
  omlish/lite/pycharm.py,sha256=pUOJevrPClSqTCEOkQBO11LKX2003tfDcp18a03QFrc,1163
389
389
  omlish/lite/reflect.py,sha256=pzOY2PPuHH0omdtglkN6DheXDrGopdL3PtTJnejyLFU,2189
@@ -573,9 +573,9 @@ omlish/text/indent.py,sha256=6Jj6TFY9unaPa4xPzrnZemJ-fHsV53IamP93XGjSUHs,1274
573
573
  omlish/text/minja.py,sha256=KAmZ2POcLcxwF4DPKxdWa16uWxXmVz1UnJXLSwt4oZo,5761
574
574
  omlish/text/parts.py,sha256=7vPF1aTZdvLVYJ4EwBZVzRSy8XB3YqPd7JwEnNGGAOo,6495
575
575
  omlish/text/random.py,sha256=jNWpqiaKjKyTdMXC-pWAsSC10AAP-cmRRPVhm59ZWLk,194
576
- omlish-0.0.0.dev181.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
577
- omlish-0.0.0.dev181.dist-info/METADATA,sha256=VyjyzxjtH4IKihQ-cMDPltC0eI2k_RGJAuVxzlWnl6o,4264
578
- omlish-0.0.0.dev181.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
579
- omlish-0.0.0.dev181.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
580
- omlish-0.0.0.dev181.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
581
- omlish-0.0.0.dev181.dist-info/RECORD,,
576
+ omlish-0.0.0.dev183.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
577
+ omlish-0.0.0.dev183.dist-info/METADATA,sha256=CWz8rfpFbm7uTutcCxn5avdrNaCsp0lm400wy39WyW8,4264
578
+ omlish-0.0.0.dev183.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
579
+ omlish-0.0.0.dev183.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
580
+ omlish-0.0.0.dev183.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
581
+ omlish-0.0.0.dev183.dist-info/RECORD,,