MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / coerce

Method coerce

lib/sqlalchemy/orm/path_registry.py:369–374  ·  view source on GitHub ↗
(cls, raw: _PathRepresentation)

Source from the content-addressed store, hash-verified

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:

Callers 11

_dump_option_structMethod · 0.45
deserializeMethod · 0.45
_truncate_recursiveMethod · 0.45
_apply_to_parentMethod · 0.45
_recurseMethod · 0.45
_prepend_pathMethod · 0.45
_prepend_pathMethod · 0.45
invokeMethod · 0.45
_get_leftmostMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected