(self, token: _StrPathToken)
| 359 | is_root: bool |
| 360 | |
| 361 | def token(self, token: _StrPathToken) -> _TokenRegistry: |
| 362 | if token.endswith(f":{_WILDCARD_TOKEN}"): |
| 363 | return _TokenRegistry(self, token) |
| 364 | elif token.endswith(f":{_DEFAULT_TOKEN}"): |
| 365 | return _TokenRegistry(self.root, token) |
| 366 | else: |
| 367 | raise exc.ArgumentError(f"invalid token: {token}") |
| 368 | |
| 369 | |
| 370 | class RootRegistry(_CreatesToken): |