diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2023-07-03 12:41:39 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-07-19 18:31:37 -0400 |
| commit | 0bb1647fd15cc112098daf9961b2e01cb4e9cd23 (patch) | |
| tree | cab2094c676a66e3eae55cd16e3f42ae7031e264 /mesonbuild/modules/python.py | |
| parent | cff2fb5950cb37b01df5046cc256826449b3abaa (diff) | |
| download | meson-0bb1647fd15cc112098daf9961b2e01cb4e9cd23.tar.gz | |
move various bits of type-checking only code to TYPE_CHECKING blocks
Mostly detected with flake8-type-checking. Also quote T.cast() first
arguments, since those are not affected by future annotations.
Diffstat (limited to 'mesonbuild/modules/python.py')
| -rw-r--r-- | mesonbuild/modules/python.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py index 1f05f08d4..f6c82e0d6 100644 --- a/mesonbuild/modules/python.py +++ b/mesonbuild/modules/python.py @@ -333,7 +333,7 @@ class PythonModule(ExtensionModule): for i in self.installations.values(): if isinstance(i, PythonExternalProgram) and i.run_bytecompile[i.info['version']]: - i = T.cast(PythonExternalProgram, i) + i = T.cast('PythonExternalProgram', i) manifest = f'python-{i.info["version"]}-installed.json' manifest_json = [] for name, f in py_files: |
