MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _fget_default

Method _fget_default

lib/sqlalchemy/ext/indexable.py:315–319  ·  view source on GitHub ↗
(self, err: Optional[BaseException] = None)

Source from the content-addressed store, hash-verified

313 self.onebased = onebased
314
315 def _fget_default(self, err: Optional[BaseException] = None) -> _T:
316 if self.default == self._NO_DEFAULT_ARGUMENT:
317 raise AttributeError(self.attr_name) from err
318 else:
319 return self.default
320
321 def fget(self, instance: Any, /) -> _T:
322 attr_name = self.attr_name

Callers 1

fgetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected