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

Method _with_annotations

lib/sqlalchemy/sql/annotation.py:301–307  ·  view source on GitHub ↗
(self, values: _AnnotationDict)

Source from the content-addressed store, hash-verified

299 return new
300
301 def _with_annotations(self, values: _AnnotationDict) -> Self:
302 clone = self.__class__.__new__(self.__class__)
303 clone.__dict__ = self.__dict__.copy()
304 clone.__dict__.pop("_annotations_cache_key", None)
305 clone.__dict__.pop("_generate_cache_key", None)
306 clone._annotations = util.immutabledict(values)
307 return clone
308
309 @overload
310 def _deannotate(

Callers 3

_annotateMethod · 0.95
_deannotateMethod · 0.95
replaceMethod · 0.45

Calls 3

__new__Method · 0.45
copyMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected