diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-08-28 10:53:14 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-08-29 23:32:43 +0300 |
commit | c5db96e0516a9ed83e7d46ec0d8bc68760e229d8 (patch) | |
tree | 8e0a0b6f162ca74661051ff854d60ff2ac48f9d9 /mesonbuild/dependencies | |
parent | f4cc60bf20ff5c365950d54f2f420d2f837181af (diff) | |
download | meson-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')
-rw-r--r-- | mesonbuild/dependencies/dev.py | 2 |
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', '') |