Skip to content

Commit

Permalink
build: add "dumb" platform check for mypy
Browse files Browse the repository at this point in the history
Mypy doesn't understand some clever version checks. This adds an
otherwise un-needed assert to force mypy to ignore the file on linux
  • Loading branch information
A-UNDERSCORE-D committed Dec 23, 2022
1 parent 50dd603 commit 5dd2287
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Build-exe-and-msi.py
Expand Up @@ -28,6 +28,9 @@

else:
raise AssertionError(f'Unsupported platform {sys.platform}')

# This added to make mypy happy
assert sys.platform == 'win32'
###########################################################################

###########################################################################
Expand Down

0 comments on commit 5dd2287

Please sign in to comment.