diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-08-10 20:51:45 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-08-11 13:37:17 -0400 |
commit | a01418db0a37908cc2504adbb0cf56d333348f9a (patch) | |
tree | 6463a2f91154092fd7f1aeeb72f744258daa6ff8 /mesonbuild/dependencies | |
parent | 03a2a3a6773785e087b296e9e6ff6791c6068f60 (diff) | |
download | meson-a01418db0a37908cc2504adbb0cf56d333348f9a.zip meson-a01418db0a37908cc2504adbb0cf56d333348f9a.tar.gz meson-a01418db0a37908cc2504adbb0cf56d333348f9a.tar.bz2 |
remove useless type annotations
These annotations all had a default initializer of the correct type, or
a parent class annotation.
Diffstat (limited to 'mesonbuild/dependencies')
-rw-r--r-- | mesonbuild/dependencies/boost.py | 2 | ||||
-rw-r--r-- | mesonbuild/dependencies/cuda.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/dependencies/boost.py b/mesonbuild/dependencies/boost.py index 0a936e6..648c8d2 100644 --- a/mesonbuild/dependencies/boost.py +++ b/mesonbuild/dependencies/boost.py @@ -333,7 +333,7 @@ class BoostLibraryFile(): def get_compiler_args(self) -> T.List[str]: args = [] # type: T.List[str] if self.mod_name in boost_libraries: - libdef = boost_libraries[self.mod_name] # type: BoostLibrary + libdef = boost_libraries[self.mod_name] if self.static: args += libdef.static else: diff --git a/mesonbuild/dependencies/cuda.py b/mesonbuild/dependencies/cuda.py index af0ae4b..e16808b 100644 --- a/mesonbuild/dependencies/cuda.py +++ b/mesonbuild/dependencies/cuda.py @@ -195,8 +195,8 @@ class CudaDependency(SystemDependency): except ValueError: continue # use // for floor instead of / which produces a float - major = vers_int // 1000 # type: int - minor = (vers_int - major * 1000) // 10 # type: int + major = vers_int // 1000 + minor = (vers_int - major * 1000) // 10 return f'{major}.{minor}' return None |