| 680 | |
| 681 | def test_subclass_compatibility(tmp_path: Path) -> None: |
| 682 | class MyFileLock(FileLock): |
| 683 | def __init__( |
| 684 | self, |
| 685 | lock_file: str | os.PathLike[str], |
| 686 | timeout: float = -1, |
| 687 | mode: int = 0o644, |
| 688 | thread_local: bool = True, |
| 689 | my_param: int = 0, |
| 690 | **kwargs: dict[str, Any], # noqa: ARG002 |
| 691 | ) -> None: |
| 692 | super().__init__(lock_file, timeout, mode, thread_local, blocking=True, is_singleton=True) |
| 693 | self.my_param = my_param |
| 694 | |
| 695 | lock_path = tmp_path / "a" |
| 696 | MyFileLock(str(lock_path), my_param=1) |
no outgoing calls