We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3340ad commit 0b8e6e5Copy full SHA for 0b8e6e5
portalocker/portalocker.py
@@ -20,7 +20,6 @@
20
Any,
21
Callable,
22
Optional,
23
- Protocol,
24
Type,
25
Union,
26
cast,
@@ -33,13 +32,13 @@
33
32
34
35
# Define a protocol for callable lockers
36
-class LockCallable(Protocol):
+class LockCallable(typing.Protocol):
37
def __call__(
38
self, file_obj: types.FileArgument, flags: LockFlags
39
) -> None: ...
40
41
42
-class UnlockCallable(Protocol):
+class UnlockCallable(typing.Protocol):
43
def __call__(self, file_obj: types.FileArgument) -> None: ...
44
45
0 commit comments