Skip to content

Commit 3f9672b

Browse files
committed
Another attempt to appease the type checker
1 parent 86eb297 commit 3f9672b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_filelock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,8 @@ def test_wrong_platform(tmp_path: Path) -> None:
500500
@pytest.mark.skipif(sys.platform == "win32", reason="Windows filesystems support flock")
501501
def test_flock_not_implemented_unix(tmp_path: Path) -> None:
502502
import fcntl
503-
def dummy_flock(fd: IO, operation: str) -> None:
504-
if fd != operation: # fd and operation will never be equal
503+
def dummy_flock(fd: IO[Any], operation: str) -> None:
504+
if operation not in fd: # fd and operation will never be equal
505505
raise OSError(ENOSYS, "mock error")
506506

507507
lock_path = tmp_path / "a.lock"

0 commit comments

Comments
 (0)