MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __call__

Method __call__

lib/sqlalchemy/testing/exclusions.py:110–121  ·  view source on GitHub ↗
(self, fn)

Source from the content-addressed store, hash-verified

108 self.warns.update(other.warns)
109
110 def __call__(self, fn):
111 if hasattr(fn, "_sa_exclusion_extend"):
112 fn._sa_exclusion_extend._extend(self)
113 return fn
114
115 @decorator
116 def decorate(fn, *args, **kw):
117 return self._do(config._current, fn, *args, **kw)
118
119 decorated = decorate(fn)
120 decorated._sa_exclusion_extend = self
121 return decorated
122
123 @contextlib.contextmanager
124 def fail_if(self):

Callers

nothing calls this directly

Calls 2

decorateFunction · 0.70
_extendMethod · 0.45

Tested by

no test coverage detected