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 af0b94f commit 252c58bCopy full SHA for 252c58b
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