MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _from_argument

Method _from_argument

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

Source from the content-addressed store, hash-verified

3345
3346 @classmethod
3347 def _from_argument(
3348 cls, with_for_update: ForUpdateParameter
3349 ) -> Optional[ForUpdateArg]:
3350 if isinstance(with_for_update, ForUpdateArg):
3351 return with_for_update
3352 elif with_for_update in (None, False):
3353 return None
3354 elif with_for_update is True:
3355 return ForUpdateArg()
3356 else:
3357 return ForUpdateArg(**cast("Dict[str, Any]", with_for_update))
3358
3359 def __eq__(self, other: Any) -> bool:
3360 return (

Callers 2

refreshMethod · 0.80
_get_implMethod · 0.80

Calls 2

ForUpdateArgClass · 0.85
castFunction · 0.70

Tested by

no test coverage detected