summaryrefslogtreecommitdiff
path: root/mesonbuild/modules/pkgconfig.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-07-03 12:25:29 -0400
committerEli Schwartz <eschwartz@archlinux.org>2023-07-19 18:31:36 -0400
commit3171fc533812e15bcb5eda607c7c82d37d0aaf42 (patch)
treed570c1e52e50df39a33360d59d36589c0027796f /mesonbuild/modules/pkgconfig.py
parent4fab71f48144cd6760ceae5c3085e68e93b9016f (diff)
downloadmeson-3171fc533812e15bcb5eda607c7c82d37d0aaf42.tar.gz
add better comments for mypy suppressions
Diffstat (limited to 'mesonbuild/modules/pkgconfig.py')
-rw-r--r--mesonbuild/modules/pkgconfig.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py
index 921fb6661..9f71d952c 100644
--- a/mesonbuild/modules/pkgconfig.py
+++ b/mesonbuild/modules/pkgconfig.py
@@ -649,6 +649,7 @@ class PkgConfigModule(NewExtensionModule):
if dataonly:
default_subdirs = []
blocked_vars = ['libraries', 'libraries_private', 'requires_private', 'extra_cflags', 'subdirs']
+ # Mypy can't figure out that this TypedDict index is correct, without repeating T.Literal for the entire list
if any(kwargs[k] for k in blocked_vars): # type: ignore
raise mesonlib.MesonException(f'Cannot combine dataonly with any of {blocked_vars}')
default_install_dir = os.path.join(state.environment.get_datadir(), 'pkgconfig')