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/mcompile.py | |
| parent | 03a2a3a6773785e087b296e9e6ff6791c6068f60 (diff) | |
| download | meson-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.py | 2 |
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) |
