system: prevent mypy from checking windows-related method (#5260)

* system: prevent mypy from checking windows-related method

* Update dvc/system.py

Co-authored-by: Saugat Pachhai <[email protected]>

Co-authored-by: Saugat Pachhai <[email protected]>
This commit is contained in:
Paweł Redzyński
2021-01-13 13:48:57 +02:00
committed by GitHub
co-authored by Saugat Pachhai
parent f8200ca2b8
commit 2ee68b01b0
+1 -1
View File
@@ -10,7 +10,7 @@ from dvc.exceptions import DvcException
logger = logging.getLogger(__name__)
if (
platform.system() == "Windows"
sys.platform == "win32"
and sys.version_info < (3, 8)
and sys.getwindowsversion() >= (6, 2)
):