omlish 0.0.0.dev11__py3-none-any.whl → 0.0.0.dev12__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,4 +1,5 @@
1
- __version__ = '0.0.0.dev11'
1
+ __version__ = '0.0.0.dev12'
2
+ __revision__ = 'b35ec8b30c5a0e8c2cb883539abc75fd33de252a'
2
3
 
3
4
 
4
5
  #
omlish/fnpairs.py CHANGED
@@ -52,9 +52,7 @@ else:
52
52
 
53
53
 
54
54
  F = ta.TypeVar('F')
55
- F2 = ta.TypeVar('F2')
56
55
  T = ta.TypeVar('T')
57
- T2 = ta.TypeVar('T2')
58
56
  U = ta.TypeVar('U')
59
57
 
60
58
 
@@ -121,6 +119,9 @@ class Inverted(FnPair[F, T]):
121
119
  return self.fp.forward(t)
122
120
 
123
121
 
122
+ ##
123
+
124
+
124
125
  @dc.dataclass(frozen=True)
125
126
  class Composite(FnPair[F, T]):
126
127
  children: ta.Sequence[FnPair]
@@ -136,7 +137,69 @@ class Composite(FnPair[F, T]):
136
137
  return ta.cast(F, t)
137
138
 
138
139
 
140
+ I0 = ta.TypeVar('I0')
141
+ I1 = ta.TypeVar('I1')
142
+ I2 = ta.TypeVar('I2')
143
+ I3 = ta.TypeVar('I3')
144
+ I4 = ta.TypeVar('I4')
145
+
146
+
147
+ @ta.overload
148
+ def compose(
149
+ fp0: FnPair[F, I0],
150
+ f01: FnPair[I0, T],
151
+ ) -> FnPair[F, T]:
152
+ ...
153
+
154
+
155
+ @ta.overload
156
+ def compose(
157
+ fp0: FnPair[F, I0],
158
+ f01: FnPair[I0, I1],
159
+ fp2: FnPair[I1, T],
160
+ ) -> FnPair[F, T]:
161
+ ...
162
+
163
+
164
+ @ta.overload
165
+ def compose(
166
+ fp0: FnPair[F, I0],
167
+ f01: FnPair[I0, I1],
168
+ fp2: FnPair[I1, I2],
169
+ fp3: FnPair[I2, T],
170
+ ) -> FnPair[F, T]:
171
+ ...
172
+
173
+
174
+ @ta.overload
175
+ def compose(
176
+ fp0: FnPair[F, I0],
177
+ f01: FnPair[I0, I1],
178
+ fp2: FnPair[I1, I2],
179
+ fp3: FnPair[I2, I3],
180
+ fp4: FnPair[I3, T],
181
+ ) -> FnPair[F, T]:
182
+ ...
183
+
184
+
185
+ @ta.overload
186
+ def compose(
187
+ fp0: FnPair[F, I0],
188
+ f01: FnPair[I0, I1],
189
+ fp2: FnPair[I1, I2],
190
+ fp3: FnPair[I2, I3],
191
+ fp4: FnPair[I3, I4],
192
+ fp5: FnPair[I4, T],
193
+ ) -> FnPair[F, T]:
194
+ ...
195
+
196
+
197
+ @ta.overload
139
198
  def compose(*ps: FnPair) -> FnPair:
199
+ ...
200
+
201
+
202
+ def compose(*ps):
140
203
  if not ps:
141
204
  return NOP
142
205
  if len(ps) == 1:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omlish
3
- Version: 0.0.0.dev11
3
+ Version: 0.0.0.dev12
4
4
  Summary: omlish
5
5
  Author: wrmsr
6
6
  License: BSD-3-Clause
@@ -1,4 +1,4 @@
1
- omlish/__about__.py,sha256=hClCFqK7Lo1AcvKLGw6TrAIBWZVu7wcwvp712xn7pEM,2280
1
+ omlish/__about__.py,sha256=izHgi4tLqykkJ7ZSMoTzByFQFy7lJ7aY-vVzRDfYXKQ,2338
2
2
  omlish/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  omlish/argparse.py,sha256=QRQmX9G0-L_nATkFtGHvpd4qrpYzKATdjuFLbBqzJPM,6224
4
4
  omlish/bootstrap.py,sha256=3pGNiHlUcQl81q76_Wesd4pblmy82EOKkcdgectF15Q,18820
@@ -10,7 +10,7 @@ omlish/datetimes.py,sha256=HajeM1kBvwlTa-uR1TTZHmZ3zTPnnUr1uGGQhiO1XQ0,2152
10
10
  omlish/defs.py,sha256=N8O1murtr4mdSE_vjAcWGfnN7GyBXbW8rJM4qPF8na0,4737
11
11
  omlish/docker.py,sha256=5WyXJyFwqIJJ11QWwPIjHjDHnsaOVZszZAjyTvg3xew,4693
12
12
  omlish/dynamic.py,sha256=35C_cCX_Vq2HrHzGk5T-zbrMvmUdiIiwDzDNixczoDo,6541
13
- omlish/fnpairs.py,sha256=FgP8lzygrbRo5E1f8wbWy_-opoR6Dy8BKRi776kOrIY,9445
13
+ omlish/fnpairs.py,sha256=Bt_5dfjI4c-ejU9SSSWxozKGLgB-7xMrn86h5J79UNU,10404
14
14
  omlish/iterators.py,sha256=GGLC7RIT86uXMjhIIIqnff_Iu5SI_b9rXYywYGFyzmo,7292
15
15
  omlish/libc.py,sha256=u0481imCiTFqP_e-v9g0pD-0WD249j5vYzhtn-fnNkY,15308
16
16
  omlish/matchfns.py,sha256=o2evI7q0CAMHR8RQ_Jks6L0UoNpEDltnLjOiamJDtmU,6155
@@ -260,8 +260,8 @@ omlish/text/delimit.py,sha256=ubPXcXQmtbOVrUsNh5gH1mDq5H-n1y2R4cPL5_DQf68,4928
260
260
  omlish/text/glyphsplit.py,sha256=Ug-dPRO7x-OrNNr8g1y6DotSZ2KH0S-VcOmUobwa4B0,3296
261
261
  omlish/text/indent.py,sha256=6Jj6TFY9unaPa4xPzrnZemJ-fHsV53IamP93XGjSUHs,1274
262
262
  omlish/text/parts.py,sha256=KGgo0wHOIMVMZtDso-rhSWKAcAkYAH2IGpg9tULabu8,6505
263
- omlish-0.0.0.dev11.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
264
- omlish-0.0.0.dev11.dist-info/METADATA,sha256=CHhqga9nGZy6B0--Hv3IhwKY7GMRyQrqOammbi5JJeU,3563
265
- omlish-0.0.0.dev11.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
266
- omlish-0.0.0.dev11.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
267
- omlish-0.0.0.dev11.dist-info/RECORD,,
263
+ omlish-0.0.0.dev12.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
264
+ omlish-0.0.0.dev12.dist-info/METADATA,sha256=0QsB_sFImufctXgwlmQWcwoq8GttI7wLkE5a8OYso0o,3563
265
+ omlish-0.0.0.dev12.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
266
+ omlish-0.0.0.dev12.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
267
+ omlish-0.0.0.dev12.dist-info/RECORD,,