We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64034a2 commit 26b4d7cCopy full SHA for 26b4d7c
src/filelock/__init__.py
@@ -32,9 +32,11 @@
32
if warnings is not None:
33
warnings.warn("only soft file lock is available", stacklevel=2)
34
35
-
36
-#: Alias for the lock, which should be used for the current platform.
37
-FileLock: type[BaseFileLock] = SoftFileLock if TYPE_CHECKING else _FileLock # type: ignore[assignment]
+if TYPE_CHECKING: # noqa: SIM108
+ FileLock = SoftFileLock
+else:
38
+ #: Alias for the lock, which should be used for the current platform.
39
+ FileLock = _FileLock
40
41
42
__all__ = [
0 commit comments