(cls, raw: _PathRepresentation)
| 367 | |
| 368 | @classmethod |
| 369 | def coerce(cls, raw: _PathRepresentation) -> PathRegistry: |
| 370 | def _red(prev: PathRegistry, next_: _PathElementType) -> PathRegistry: |
| 371 | return prev[next_] |
| 372 | |
| 373 | # can't quite get mypy to appreciate this one :) |
| 374 | return reduce(_red, raw, cls.root) # type: ignore |
| 375 | |
| 376 | def __add__(self, other: PathRegistry) -> PathRegistry: |
| 377 | def _red(prev: PathRegistry, next_: _PathElementType) -> PathRegistry: |
no outgoing calls
no test coverage detected