omlish 0.0.0.dev341__py3-none-any.whl → 0.0.0.dev343__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/logs/standard.py +1 -1
- omlish/reflect/types.py +4 -2
- omlish/typedvalues/__init__.py +1 -0
- omlish/typedvalues/accessor.py +1 -1
- omlish/typedvalues/collection.py +8 -1
- {omlish-0.0.0.dev341.dist-info → omlish-0.0.0.dev343.dist-info}/METADATA +1 -1
- {omlish-0.0.0.dev341.dist-info → omlish-0.0.0.dev343.dist-info}/RECORD +12 -12
- {omlish-0.0.0.dev341.dist-info → omlish-0.0.0.dev343.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev341.dist-info → omlish-0.0.0.dev343.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev341.dist-info → omlish-0.0.0.dev343.dist-info}/licenses/LICENSE +0 -0
- {omlish-0.0.0.dev341.dist-info → omlish-0.0.0.dev343.dist-info}/top_level.txt +0 -0
omlish/__about__.py
CHANGED
omlish/logs/standard.py
CHANGED
@@ -39,7 +39,7 @@ class StandardLogFormatter(logging.Formatter):
|
|
39
39
|
converter = datetime.datetime.fromtimestamp # type: ignore
|
40
40
|
|
41
41
|
def formatTime(self, record, datefmt=None):
|
42
|
-
ct = self.converter(record.created)
|
42
|
+
ct = self.converter(record.created)
|
43
43
|
if datefmt:
|
44
44
|
return ct.strftime(datefmt) # noqa
|
45
45
|
else:
|
omlish/reflect/types.py
CHANGED
@@ -385,17 +385,19 @@ class Reflector:
|
|
385
385
|
obj,
|
386
386
|
)
|
387
387
|
|
388
|
+
r_args = tuple(self.type(a) for a in args)
|
389
|
+
|
388
390
|
if _is_immediate_protocol(origin):
|
389
391
|
return Protocol(
|
390
392
|
origin,
|
391
|
-
|
393
|
+
r_args,
|
392
394
|
params,
|
393
395
|
obj,
|
394
396
|
)
|
395
397
|
|
396
398
|
return Generic(
|
397
399
|
origin,
|
398
|
-
|
400
|
+
r_args,
|
399
401
|
params,
|
400
402
|
obj,
|
401
403
|
)
|
omlish/typedvalues/__init__.py
CHANGED
omlish/typedvalues/accessor.py
CHANGED
@@ -124,7 +124,7 @@ class TypedValuesAccessor(
|
|
124
124
|
#
|
125
125
|
|
126
126
|
@ta.final
|
127
|
-
def get_any(self, cls: type[T]) -> ta.Sequence[T]:
|
127
|
+
def get_any(self, cls: type[T] | tuple[type[T], ...]) -> ta.Sequence[T]:
|
128
128
|
return self._typed_value_get_any(cls)
|
129
129
|
|
130
130
|
@abc.abstractmethod
|
omlish/typedvalues/collection.py
CHANGED
@@ -188,7 +188,7 @@ class TypedValues(
|
|
188
188
|
else:
|
189
189
|
raise TypeError(key)
|
190
190
|
|
191
|
-
_any_dct: dict[type, tuple[TypedValueT, ...]]
|
191
|
+
_any_dct: dict[type | tuple[type, ...], tuple[TypedValueT, ...]]
|
192
192
|
|
193
193
|
def _typed_value_get_any(self, cls):
|
194
194
|
try:
|
@@ -208,3 +208,10 @@ class TypedValues(
|
|
208
208
|
|
209
209
|
|
210
210
|
collect = TypedValues
|
211
|
+
|
212
|
+
|
213
|
+
def as_collection(src: ta.Sequence[TypedValueT]) -> TypedValues[TypedValueT]:
|
214
|
+
if isinstance(src, TypedValues):
|
215
|
+
return src
|
216
|
+
else:
|
217
|
+
return TypedValues(*src)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
omlish/.manifests.json,sha256=orgsRvtpHu8tdhaCvlP9v3P495OJopYYiHKjK68WtWg,8587
|
2
|
-
omlish/__about__.py,sha256
|
2
|
+
omlish/__about__.py,sha256=xxpadamVe24Gek4MDbY3oRgadkUG_nb1_jVTyw_5lW4,3478
|
3
3
|
omlish/__init__.py,sha256=SsyiITTuK0v74XpKV8dqNaCmjOlan1JZKrHQv5rWKPA,253
|
4
4
|
omlish/c3.py,sha256=rer-TPOFDU6fYq_AWio_AmA-ckZ8JDY5shIzQ_yXfzA,8414
|
5
5
|
omlish/cached.py,sha256=MLap_p0rdGoDIMVhXVHm1tsbcWobJF0OanoodV03Ju8,542
|
@@ -482,7 +482,7 @@ omlish/logs/json.py,sha256=muekHkKmGIqq_wr-tV94WwXjNFtUBbFeRdni-JhrCkA,1371
|
|
482
482
|
omlish/logs/noisy.py,sha256=hWpbseerZqlHdEPEajDTSmcRhx8LmmNAxz_7GBZAO9s,353
|
483
483
|
omlish/logs/protocol.py,sha256=dfAR0_5kLEAkx0nhuWBhWMTVjWjhEl2uL-MxejrW1lk,4732
|
484
484
|
omlish/logs/proxy.py,sha256=9FmqWQuX3pXezWkCeN17H805CicKN6-QqMKGptk45PI,2378
|
485
|
-
omlish/logs/standard.py,sha256=
|
485
|
+
omlish/logs/standard.py,sha256=tT9HtpvCRrJaJSc5K9pTBxv6o6O-Zv5jHkzv059aStc,3146
|
486
486
|
omlish/logs/timing.py,sha256=XrFUHIPT4EHDujLKbGs9fGFMmoM3NEP8xPRaESJr7bQ,1513
|
487
487
|
omlish/logs/utils.py,sha256=OkFWf1exmWImmT7BaSiIC7c0Fk9tAis-PRqo8H4ny3c,398
|
488
488
|
omlish/manifests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -570,7 +570,7 @@ omlish/reflect/__init__.py,sha256=9pzXLXXNMHkLhhI79iUr-o0SMOtR6HMUmAEUplZkIdE,85
|
|
570
570
|
omlish/reflect/inspect.py,sha256=WCo2YpBYauKw6k758FLlZ_H4Q05rgVPs96fEv9w6zHQ,1538
|
571
571
|
omlish/reflect/ops.py,sha256=RxUc9sFZxYP_f5y-jU2DujFLkzhzx8DsyITShPSpW3U,2614
|
572
572
|
omlish/reflect/subst.py,sha256=jpBgYR1_JyH9fz5b-gmOg7OhFKk7jIxEh7hwtKYKC9Q,3691
|
573
|
-
omlish/reflect/types.py,sha256=
|
573
|
+
omlish/reflect/types.py,sha256=2LJjaa2SuyhmeMh4Vmrgq-pdqQ-diKGAJJv9ln-wKrg,11244
|
574
574
|
omlish/secrets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
575
575
|
omlish/secrets/all.py,sha256=gv_d9SfyMxso30HsrSz9XmIrSZOdl3rLA5MSH0ZXfgM,486
|
576
576
|
omlish/secrets/crypto.py,sha256=9D21lnvPhStwu8arD4ssT0ih0bDG-nlqIRdVgYL40xA,3708
|
@@ -854,9 +854,9 @@ omlish/text/antlr/_runtime/xpath/XPathLexer.py,sha256=WvGKQjQnu7pX5C4CFKtsCzba2B
|
|
854
854
|
omlish/text/antlr/_runtime/xpath/__init__.py,sha256=lMd_BbXYdlDhZQN_q0TKN978XW5G0pq618F0NaLkpFE,71
|
855
855
|
omlish/text/go/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
856
856
|
omlish/text/go/quoting.py,sha256=N9EYdnFdEX_A8fOviH-1w4jwV3XOQ7VU2WsoUNubYVY,9137
|
857
|
-
omlish/typedvalues/__init__.py,sha256=
|
858
|
-
omlish/typedvalues/accessor.py,sha256=
|
859
|
-
omlish/typedvalues/collection.py,sha256=
|
857
|
+
omlish/typedvalues/__init__.py,sha256=vYdqZdjczcNrHVI35UxLH0z23dvLTzXjFeecrq2Ep-8,769
|
858
|
+
omlish/typedvalues/accessor.py,sha256=2PQVoFrrCTOcZACAQ28GOvF9xhKyKz27GMSfS0xq5Pc,3184
|
859
|
+
omlish/typedvalues/collection.py,sha256=CK4Vk9kJqAt2V8o6I4zGyv2u9DKov12uSvsGdqEd2Ws,5793
|
860
860
|
omlish/typedvalues/consumer.py,sha256=Apw1s7eedbKeTNMk5BITCJISA_7hPNqi2tWK15g3e1M,4651
|
861
861
|
omlish/typedvalues/generic.py,sha256=ft-x4X3k1oFirtYnDfsvrI3ZQikWM8lGLrvrOEbcGq0,742
|
862
862
|
omlish/typedvalues/holder.py,sha256=vu-umn-h1nvUqmtV5T9ZfQ_OoOYsERu8PhI2N48Ryns,1133
|
@@ -864,9 +864,9 @@ omlish/typedvalues/marshal.py,sha256=AtBz7Jq-BfW8vwM7HSxSpR85JAXmxK2T0xDblmm1HI0
|
|
864
864
|
omlish/typedvalues/of_.py,sha256=UXkxSj504WI2UrFlqdZJbu2hyDwBhL7XVrc2qdR02GQ,1309
|
865
865
|
omlish/typedvalues/reflect.py,sha256=PAvKW6T4cW7u--iX80w3HWwZUS3SmIZ2_lQjT65uAyk,1026
|
866
866
|
omlish/typedvalues/values.py,sha256=ym46I-q2QJ_6l4UlERqv3yj87R-kp8nCKMRph0xQ3UA,1307
|
867
|
-
omlish-0.0.0.
|
868
|
-
omlish-0.0.0.
|
869
|
-
omlish-0.0.0.
|
870
|
-
omlish-0.0.0.
|
871
|
-
omlish-0.0.0.
|
872
|
-
omlish-0.0.0.
|
867
|
+
omlish-0.0.0.dev343.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
868
|
+
omlish-0.0.0.dev343.dist-info/METADATA,sha256=bt5J_lPehPVFkK04YwpkWJ6n2ReI2Qu_1hUZ24QC3JE,4416
|
869
|
+
omlish-0.0.0.dev343.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
870
|
+
omlish-0.0.0.dev343.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
|
871
|
+
omlish-0.0.0.dev343.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
|
872
|
+
omlish-0.0.0.dev343.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|