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

Method _from_argument

lib/sqlalchemy/sql/selectable.py:3271–3281  ·  view source on GitHub ↗
(
        cls, with_for_update: ForUpdateParameter
    )

Source from the content-addressed store, hash-verified

3269
3270 @classmethod
3271 def _from_argument(
3272 cls, with_for_update: ForUpdateParameter
3273 ) -> Optional[ForUpdateArg]:
3274 if isinstance(with_for_update, ForUpdateArg):
3275 return with_for_update
3276 elif with_for_update in (None, False):
3277 return None
3278 elif with_for_update is True:
3279 return ForUpdateArg()
3280 else:
3281 return ForUpdateArg(**cast("Dict[str, Any]", with_for_update))
3282
3283 def __eq__(self, other: Any) -> bool:
3284 return (

Callers 2

refreshMethod · 0.80
_get_implMethod · 0.80

Calls 2

ForUpdateArgClass · 0.85
castFunction · 0.85

Tested by

no test coverage detected