(cls, raw: _PathRepresentation)
| 333 | |
| 334 | @classmethod |
| 335 | def coerce(cls, raw: _PathRepresentation) -> PathRegistry: |
| 336 | def _red(prev: PathRegistry, next_: _PathElementType) -> PathRegistry: |
| 337 | return prev[next_] |
| 338 | |
| 339 | # can't quite get mypy to appreciate this one :) |
| 340 | return reduce(_red, raw, cls.root) # type: ignore |
| 341 | |
| 342 | def __add__(self, other: PathRegistry) -> PathRegistry: |
| 343 | def _red(prev: PathRegistry, next_: _PathElementType) -> PathRegistry: |
no outgoing calls
no test coverage detected