mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
use comparison with sys.platform so mypy understands it
This commit is contained in:
parent
74183d91cb
commit
d258650ad4
1 changed files with 2 additions and 2 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import contextlib
|
||||
import errno
|
||||
import os
|
||||
import sys
|
||||
from typing import Callable
|
||||
from typing import Generator
|
||||
|
||||
|
||||
if os.name == 'nt': # pragma: no cover (windows)
|
||||
if sys.platform == 'win32': # pragma: no cover (windows)
|
||||
import msvcrt
|
||||
|
||||
# https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/locking
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue