MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / coerce

Method coerce

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

Source from the content-addressed store, hash-verified

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:

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