(
cls, with_for_update: ForUpdateParameter
)
| 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 ( |
no test coverage detected