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

Method _ifnone

lib/sqlalchemy/sql/elements.py:2706–2712  ·  view source on GitHub ↗
(
        cls, other: Optional[ColumnElement[Any]]
    )

Source from the content-addressed store, hash-verified

2704
2705 @classmethod
2706 def _ifnone(
2707 cls, other: Optional[ColumnElement[Any]]
2708 ) -> ColumnElement[Any]:
2709 if other is None:
2710 return cls._instance()
2711 else:
2712 return other
2713
2714 @classmethod
2715 def _instance(cls) -> True_:

Callers 2

_criterion_existsMethod · 0.80
test_fiveMethod · 0.80

Calls 1

_instanceMethod · 0.45

Tested by 1

test_fiveMethod · 0.64