From 5dd2287e68fe320a50c0e86ea33751f7e9f1ef12 Mon Sep 17 00:00:00 2001 From: A_D Date: Fri, 23 Dec 2022 17:55:23 +0200 Subject: [PATCH] build: add "dumb" platform check for mypy Mypy doesn't understand some clever version checks. This adds an otherwise un-needed assert to force mypy to ignore the file on linux --- Build-exe-and-msi.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Build-exe-and-msi.py b/Build-exe-and-msi.py index adc04432b..71e1eace0 100644 --- a/Build-exe-and-msi.py +++ b/Build-exe-and-msi.py @@ -28,6 +28,9 @@ else: raise AssertionError(f'Unsupported platform {sys.platform}') + +# This added to make mypy happy +assert sys.platform == 'win32' ########################################################################### ###########################################################################