diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-06-10 00:29:27 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2022-06-10 09:15:48 -0400 |
commit | a49cd00d644c8adce974175850c047056d578b05 (patch) | |
tree | 052fc6b2ea966adffc3d65201fa5e3c3a11829e2 /mesonbuild/modules | |
parent | 6aeb8792ca34956843a43dbb0f360cba656a6090 (diff) | |
download | meson-a49cd00d644c8adce974175850c047056d578b05.zip meson-a49cd00d644c8adce974175850c047056d578b05.tar.gz meson-a49cd00d644c8adce974175850c047056d578b05.tar.bz2 |
treewide: various cleanups to move imports for mypy into typechecking blocks
Along the way, add __future__ annotations where lacking.
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r-- | mesonbuild/modules/unstable_cuda.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/modules/unstable_cuda.py b/mesonbuild/modules/unstable_cuda.py index 9ab2fd7..6d7f82d 100644 --- a/mesonbuild/modules/unstable_cuda.py +++ b/mesonbuild/modules/unstable_cuda.py @@ -11,12 +11,13 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +from __future__ import annotations import typing as T import re from ..mesonlib import version_compare -from ..compilers import CudaCompiler, Compiler +from ..compilers import CudaCompiler from . import NewExtensionModule @@ -27,6 +28,7 @@ from ..interpreterbase import ( if T.TYPE_CHECKING: from . import ModuleState + from ..compilers import Compiler class CudaModule(NewExtensionModule): |