MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / visit_multi_list

Method visit_multi_list

lib/sqlalchemy/sql/cache_key.py:672–690  ·  view source on GitHub ↗
(
        self,
        attrname: str,
        obj: Any,
        parent: Any,
        anon_map: anon_map,
        bindparams: List[BindParameter[Any]],
    )

Source from the content-addressed store, hash-verified

670 )
671
672 def visit_multi_list(
673 self,
674 attrname: str,
675 obj: Any,
676 parent: Any,
677 anon_map: anon_map,
678 bindparams: List[BindParameter[Any]],
679 ) -> Tuple[Any, ...]:
680 return (
681 attrname,
682 tuple(
683 (
684 elem._gen_cache_key(anon_map, bindparams)
685 if isinstance(elem, HasCacheKey)
686 else elem
687 )
688 for elem in obj
689 ),
690 )
691
692 def visit_has_cache_key_tuples(
693 self,

Callers

nothing calls this directly

Calls 1

_gen_cache_keyMethod · 0.45

Tested by

no test coverage detected