Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 55b2020

Browse files
committedNov 23, 2024·
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a0c9e9a commit 55b2020

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
 

‎tests/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44
import threading
55
from types import TracebackType
6-
from typing import Tuple, Type, Union, Callable
6+
from typing import Callable, Tuple, Type, Union
77

88
import pytest
99

‎tests/test_read_write_filelock.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import threading
44
import time
5-
from pathlib import Path
65
from queue import Queue
6+
from typing import TYPE_CHECKING
77

88
import pytest
99

@@ -14,6 +14,9 @@
1414
has_read_write_lock,
1515
)
1616

17+
if TYPE_CHECKING:
18+
from pathlib import Path
19+
1720

1821
@pytest.mark.skipif(not has_read_write_lock, reason="ReadWriteFileLock is not available")
1922
@pytest.mark.parametrize("lock_wrapper_type", [ReadWriteFileLockWrapper])

0 commit comments

Comments
 (0)
Please sign in to comment.