aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/dev.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-08-28 10:53:14 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2022-08-29 23:32:43 +0300
commitc5db96e0516a9ed83e7d46ec0d8bc68760e229d8 (patch)
tree8e0a0b6f162ca74661051ff854d60ff2ac48f9d9 /mesonbuild/dependencies/dev.py
parentf4cc60bf20ff5c365950d54f2f420d2f837181af (diff)
downloadmeson-c5db96e0516a9ed83e7d46ec0d8bc68760e229d8.zip
meson-c5db96e0516a9ed83e7d46ec0d8bc68760e229d8.tar.gz
meson-c5db96e0516a9ed83e7d46ec0d8bc68760e229d8.tar.bz2
flake8: fix typing casts to not have actual objects
We use `__future__.annotations` to good effect everywhere we can, and one of the effects of this is that annotations are automatically stringized and don't need to be evaluated, using less memory and computation. But this only affects actual annotations -- a cast is just a function with an argument, so the compiler has no idea that it's an annotation to be stringized. Do this manually.
Diffstat (limited to 'mesonbuild/dependencies/dev.py')
-rw-r--r--mesonbuild/dependencies/dev.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/dev.py b/mesonbuild/dependencies/dev.py
index c2b1a08..12866ee 100644
--- a/mesonbuild/dependencies/dev.py
+++ b/mesonbuild/dependencies/dev.py
@@ -529,7 +529,7 @@ class ZlibSystemDependency(SystemDependency):
class JNISystemDependency(SystemDependency):
def __init__(self, environment: 'Environment', kwargs: JNISystemDependencyKW):
- super().__init__('jni', environment, T.cast(T.Dict[str, T.Any], kwargs))
+ super().__init__('jni', environment, T.cast('T.Dict[str, T.Any]', kwargs))
self.feature_since = ('0.62.0', '')