omlish 0.0.0.dev182__py3-none-any.whl → 0.0.0.dev184__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 CHANGED
@@ -1,5 +1,5 @@
1
- __version__ = '0.0.0.dev182'
2
- __revision__ = '3c22b86c16d9d246f31169963497ea09c8c828b0'
1
+ __version__ = '0.0.0.dev184'
2
+ __revision__ = 'f887058bae9b607318c198994069c5179bbe5e30'
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.dev182
3
+ Version: 0.0.0.dev184
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=SD1gKsrCKvhPYHdgaemCBMyj26GmSDfXkHi9aXIy0v4,3409
2
+ omlish/__about__.py,sha256=IUmrL23_3uqjnDvdYLj3s03R2WCN3WuUzBWUSmVV7Ns,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.dev182.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
577
- omlish-0.0.0.dev182.dist-info/METADATA,sha256=cQdEQaSDLTQv8fC0fY8DCED00Z_Er4lKrFga0kdijWc,4264
578
- omlish-0.0.0.dev182.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
579
- omlish-0.0.0.dev182.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
580
- omlish-0.0.0.dev182.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
581
- omlish-0.0.0.dev182.dist-info/RECORD,,
576
+ omlish-0.0.0.dev184.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
577
+ omlish-0.0.0.dev184.dist-info/METADATA,sha256=55DHVMSGXuuQnRiMWxDwhYGxjTbpMXhW-vM4DH2xw6s,4264
578
+ omlish-0.0.0.dev184.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
579
+ omlish-0.0.0.dev184.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
580
+ omlish-0.0.0.dev184.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
581
+ omlish-0.0.0.dev184.dist-info/RECORD,,