MCPcopy Index your code
hub / github.com/dry-python/returns / _collect

Method _collect

returns/iterables.py:261–283  ·  view source on GitHub ↗
(
        cls,
        iterable: Iterable[
            KindN[_ApplicativeKind, _FirstType, _SecondType, _ThirdType],
        ],
        acc: KindN[
            _ApplicativeKind,
            'tuple[_FirstType, ...]',
            _SecondType,
            _ThirdType,
        ],
    )

Source from the content-addressed store, hash-verified

259
260 @classmethod
261 def _collect(
262 cls,
263 iterable: Iterable[
264 KindN[_ApplicativeKind, _FirstType, _SecondType, _ThirdType],
265 ],
266 acc: KindN[
267 _ApplicativeKind,
268 'tuple[_FirstType, ...]',
269 _SecondType,
270 _ThirdType,
271 ],
272 ) -> KindN[
273 _ApplicativeKind,
274 'tuple[_FirstType, ...]',
275 _SecondType,
276 _ThirdType,
277 ]:
278 return cls._loop(
279 iterable,
280 acc,
281 _concat_sequence,
282 _concat_applicative,
283 )
284
285 @classmethod
286 def _collect_all(

Callers 1

collectMethod · 0.80

Calls 1

_loopMethod · 0.45

Tested by

no test coverage detected