MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / visit_inspectable

Method visit_inspectable

lib/sqlalchemy/sql/cache_key.py:635–643  ·  lib/sqlalchemy/sql/cache_key.py::_CacheKeyTraversal.visit_inspectable
(
        self,
        attrname: str,
        obj: Any,
        parent: Any,
        anon_map: anon_map,
        bindparams: List[BindParameter[Any]],
    )

Source from the content-addressed store, hash-verified

633 return tuple((fn.__code__, c_key) for fn, c_key in obj)
634
635 def visit_inspectable(
636 self,
637 attrname: str,
638 obj: Any,
639 parent: Any,
640 anon_map: anon_map,
641 bindparams: List[BindParameter[Any]],
642 ) -> Tuple[Any, ...]:
643 return (attrname, inspect(obj)._gen_cache_key(anon_map, bindparams))
644
645 def visit_string_list(
646 self,

Callers

nothing calls this directly

Calls 2

inspectFunction · 0.90
_gen_cache_keyMethod · 0.45

Tested by

no test coverage detected