From 2ee68b01b0a02d78734b8867013464571bd1b18c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Redzy=C5=84ski?= Date: Wed, 13 Jan 2021 12:48:57 +0100 Subject: [PATCH] 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 Co-authored-by: Saugat Pachhai --- dvc/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/system.py b/dvc/system.py index 4b00bd834..5d57a58ed 100644 --- a/dvc/system.py +++ b/dvc/system.py @@ -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) ):