MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / decorate

Function decorate

lib/sqlalchemy/util/deprecations.py:86–94  ·  view source on GitHub ↗
(cls: Type[_T])

Source from the content-addressed store, hash-verified

84 header = ".. deprecated:: %s %s" % (version, (message or ""))
85
86 def decorate(cls: Type[_T]) -> Type[_T]:
87 return _decorate_cls_with_warning(
88 cls,
89 constructor,
90 exc.SADeprecationWarning,
91 message % dict(func=constructor),
92 version,
93 header,
94 )
95
96 return decorate
97

Callers

nothing calls this directly

Calls 7

_decorate_with_warningFunction · 0.85
inject_param_textFunction · 0.85
warnedFunction · 0.85
intersectionMethod · 0.45
differenceMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected