MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _ifnone

Method _ifnone

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

Source from the content-addressed store, hash-verified

2896
2897 @classmethod
2898 def _ifnone(
2899 cls, other: Optional[ColumnElement[Any]]
2900 ) -> ColumnElement[Any]:
2901 if other is None:
2902 return cls._instance()
2903 else:
2904 return other
2905
2906 @classmethod
2907 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