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 contextlib
|
||||||
import errno
|
import errno
|
||||||
import os
|
import sys
|
||||||
from typing import Callable
|
from typing import Callable
|
||||||
from typing import Generator
|
from typing import Generator
|
||||||
|
|
||||||
|
|
||||||
if os.name == 'nt': # pragma: no cover (windows)
|
if sys.platform == 'win32': # pragma: no cover (windows)
|
||||||
import msvcrt
|
import msvcrt
|
||||||
|
|
||||||
# https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/locking
|
# https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/locking
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue