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