summaryrefslogtreecommitdiff
path: root/run_mypy.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-10-06 05:12:30 -0400
committerEli Schwartz <eschwartz@archlinux.org>2023-01-16 15:30:12 -0500
commit2d0c9ce5f270306610c502859ebd46fd92162fb1 (patch)
tree0c21acfcc5c2dbbf6c59c5aeaab17c45c4e8d6e0 /run_mypy.py
parent9b999ddc874cfba34c3d1c67f75aba037389e65f (diff)
downloadmeson-2d0c9ce5f270306610c502859ebd46fd92162fb1.tar.gz
properly type utils/core.py and add it to mypy
EnvironmentVariables was always broken, it used MutableMapping because everyone <3 abstract interfaces, especially when they are broken and don't actually do what you want. This needs a dict interface, exposing `.copy()`. We either use a dict or os._Environ, and the latter also supports that. Also fix a broken import, and the fallout from forgetting to update the signature of self.envvars in commit b926374205bd761085031755c87152d08bc10e9d.
Diffstat (limited to 'run_mypy.py')
-rwxr-xr-xrun_mypy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/run_mypy.py b/run_mypy.py
index cb974f312..668356010 100755
--- a/run_mypy.py
+++ b/run_mypy.py
@@ -33,6 +33,7 @@ modules = [
'mesonbuild/interpreter/type_checking.py',
'mesonbuild/mcompile.py',
'mesonbuild/mdevenv.py',
+ 'mesonbuild/utils/core.py',
'mesonbuild/utils/platform.py',
'mesonbuild/utils/universal.py',
'mesonbuild/minit.py',