omlish 0.0.0.dev272__py3-none-any.whl → 0.0.0.dev273__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/typedvalues/collection.py +3 -2
- omlish/typedvalues/values.py +6 -0
- {omlish-0.0.0.dev272.dist-info → omlish-0.0.0.dev273.dist-info}/METADATA +1 -1
- {omlish-0.0.0.dev272.dist-info → omlish-0.0.0.dev273.dist-info}/RECORD +9 -9
- {omlish-0.0.0.dev272.dist-info → omlish-0.0.0.dev273.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev272.dist-info → omlish-0.0.0.dev273.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev272.dist-info → omlish-0.0.0.dev273.dist-info}/licenses/LICENSE +0 -0
- {omlish-0.0.0.dev272.dist-info → omlish-0.0.0.dev273.dist-info}/top_level.txt +0 -0
omlish/__about__.py
CHANGED
omlish/typedvalues/collection.py
CHANGED
@@ -72,8 +72,9 @@ class TypedValues(
|
|
72
72
|
|
73
73
|
def without(self, *tys: type) -> ta.Iterator[TypedValueT]:
|
74
74
|
for o in self._lst:
|
75
|
-
if
|
76
|
-
|
75
|
+
if isinstance(o, tys):
|
76
|
+
continue
|
77
|
+
yield o
|
77
78
|
|
78
79
|
def __repr__(self) -> str:
|
79
80
|
return f'{self.__class__.__name__}({", ".join(map(repr, self._lst))})'
|
omlish/typedvalues/values.py
CHANGED
@@ -14,6 +14,9 @@ class TypedValue(lang.Abstract):
|
|
14
14
|
pass
|
15
15
|
|
16
16
|
|
17
|
+
##
|
18
|
+
|
19
|
+
|
17
20
|
class UniqueTypedValue(TypedValue, lang.Abstract):
|
18
21
|
_unique_typed_value_cls: ta.ClassVar[type[TypedValue]]
|
19
22
|
|
@@ -29,6 +32,9 @@ class UniqueTypedValue(TypedValue, lang.Abstract):
|
|
29
32
|
raise TypeError(f'Class already has _unique_typed_value_cls: {cls}')
|
30
33
|
|
31
34
|
|
35
|
+
##
|
36
|
+
|
37
|
+
|
32
38
|
@dc.dataclass(frozen=True)
|
33
39
|
@dc.extra_params(generic_init=True)
|
34
40
|
class ScalarTypedValue(TypedValue, lang.Abstract, ta.Generic[T]):
|
@@ -1,5 +1,5 @@
|
|
1
1
|
omlish/.manifests.json,sha256=x26AIwDzScUvnX-p4xlq6Zc5QYrAo0Vmgf1qHc1KL_M,8253
|
2
|
-
omlish/__about__.py,sha256=
|
2
|
+
omlish/__about__.py,sha256=E6wHAnFO3xZWaRLHShW8D8wfZeMn1NE8rAz-ksXt6qg,3380
|
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
|
@@ -778,13 +778,13 @@ omlish/text/go/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
778
778
|
omlish/text/go/quoting.py,sha256=N9EYdnFdEX_A8fOviH-1w4jwV3XOQ7VU2WsoUNubYVY,9137
|
779
779
|
omlish/typedvalues/__init__.py,sha256=9ROZq46KN2scNUckjMaSiUiXxP3a_-8_lnOh_eBF5RM,357
|
780
780
|
omlish/typedvalues/accessor.py,sha256=gZ48yDFRYS_0TgbRBY6Pxa50ncWCqwaGes_T_RWLTvo,2738
|
781
|
-
omlish/typedvalues/collection.py,sha256=
|
781
|
+
omlish/typedvalues/collection.py,sha256=1f0MLtlmynCm8pabzRtarmipcqFWw_7Z9EEuWJ68Ed8,3513
|
782
782
|
omlish/typedvalues/generic.py,sha256=byWG_gMXhNelckUwdmOoJE9FKkL71Q4BSi4ZLyy0XZ0,788
|
783
783
|
omlish/typedvalues/holder.py,sha256=4SwRezsmuDDEO5gENGx8kTm30pblF5UktoEAu02i-Gk,1554
|
784
|
-
omlish/typedvalues/values.py,sha256=
|
785
|
-
omlish-0.0.0.
|
786
|
-
omlish-0.0.0.
|
787
|
-
omlish-0.0.0.
|
788
|
-
omlish-0.0.0.
|
789
|
-
omlish-0.0.0.
|
790
|
-
omlish-0.0.0.
|
784
|
+
omlish/typedvalues/values.py,sha256=V5hgmOmrVhRd0WdgMLku9MdxvRY2m0NzbQenu8WYl6I,902
|
785
|
+
omlish-0.0.0.dev273.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
786
|
+
omlish-0.0.0.dev273.dist-info/METADATA,sha256=8RDe_CEzwDnV44ud51Ere2JFi0bQudPpKeB0hXhw1to,4198
|
787
|
+
omlish-0.0.0.dev273.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
788
|
+
omlish-0.0.0.dev273.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
|
789
|
+
omlish-0.0.0.dev273.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
|
790
|
+
omlish-0.0.0.dev273.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|