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/arglist.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/arglist.py')
| -rw-r--r-- | mesonbuild/arglist.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/arglist.py b/mesonbuild/arglist.py index c44728ab7..dfb3dcd41 100644 --- a/mesonbuild/arglist.py +++ b/mesonbuild/arglist.py @@ -26,7 +26,7 @@ if T.TYPE_CHECKING: from .compilers import Compiler # execinfo is a compiler lib on BSD -UNIXY_COMPILER_INTERNAL_LIBS = ['m', 'c', 'pthread', 'dl', 'rt', 'execinfo'] # type: T.List[str] +UNIXY_COMPILER_INTERNAL_LIBS = ['m', 'c', 'pthread', 'dl', 'rt', 'execinfo'] class Dedup(enum.Enum): @@ -94,7 +94,7 @@ class CompilerArgs(T.MutableSequence[str]): # NOTE: not thorough. A list of potential corner cases can be found in # https://github.com/mesonbuild/meson/pull/4593#pullrequestreview-182016038 dedup1_prefixes = () # type: T.Tuple[str, ...] - dedup1_suffixes = ('.lib', '.dll', '.so', '.dylib', '.a') # type: T.Tuple[str, ...] + dedup1_suffixes = ('.lib', '.dll', '.so', '.dylib', '.a') # Match a .so of the form path/to/libfoo.so.0.1.0 # Only UNIX shared libraries require this. Others have a fixed extension. dedup1_regex = re.compile(r'([\/\\]|\A)lib.*\.so(\.[0-9]+)?(\.[0-9]+)?(\.[0-9]+)?$') @@ -102,7 +102,7 @@ class CompilerArgs(T.MutableSequence[str]): # In generate_link() we add external libs without de-dup, but we must # *always* de-dup these because they're special arguments to the linker # TODO: these should probably move too - always_dedup_args = tuple('-l' + lib for lib in UNIXY_COMPILER_INTERNAL_LIBS) # type : T.Tuple[str, ...] + always_dedup_args = tuple('-l' + lib for lib in UNIXY_COMPILER_INTERNAL_LIBS) def __init__(self, compiler: T.Union['Compiler', 'StaticLinker'], iterable: T.Optional[T.Iterable[str]] = None): |
