MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _with_annotations

Method _with_annotations

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

Source from the content-addressed store, hash-verified

302 return new
303
304 def _with_annotations(self, values: _AnnotationDict) -> Self:
305 clone = self.__class__.__new__(self.__class__)
306 clone.__dict__ = self.__dict__.copy()
307 clone.__dict__.pop("_annotations_cache_key", None)
308 clone.__dict__.pop("_generate_cache_key", None)
309 clone._annotations = util.immutabledict(values)
310 return clone
311
312 @overload
313 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