summaryrefslogtreecommitdiff
path: root/mesonbuild/mcompile.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-08-10 20:51:45 -0400
committerEli Schwartz <eschwartz@archlinux.org>2023-08-11 13:37:17 -0400
commita01418db0a37908cc2504adbb0cf56d333348f9a (patch)
tree6463a2f91154092fd7f1aeeb72f744258daa6ff8 /mesonbuild/mcompile.py
parent03a2a3a6773785e087b296e9e6ff6791c6068f60 (diff)
downloadmeson-a01418db0a37908cc2504adbb0cf56d333348f9a.tar.gz
remove useless type annotations
These annotations all had a default initializer of the correct type, or a parent class annotation.
Diffstat (limited to 'mesonbuild/mcompile.py')
-rw-r--r--mesonbuild/mcompile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mcompile.py b/mesonbuild/mcompile.py
index 4e46702f0..7ae7175e8 100644
--- a/mesonbuild/mcompile.py
+++ b/mesonbuild/mcompile.py
@@ -174,7 +174,7 @@ def generate_target_name_vs(target: ParsedTargetName, builddir: Path, introspect
# Normalize project name
# Source: https://docs.microsoft.com/en-us/visualstudio/msbuild/how-to-build-specific-targets-in-solutions-by-using-msbuild-exe
- target_name = re.sub(r"[\%\$\@\;\.\(\)']", '_', intro_target['id']) # type: str
+ target_name = re.sub(r"[\%\$\@\;\.\(\)']", '_', intro_target['id'])
rel_path = Path(intro_target['filename'][0]).relative_to(builddir.resolve()).parent
if rel_path != Path('.'):
target_name = str(rel_path / target_name)