diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-12-07 14:58:23 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-01-04 12:20:59 -0800 |
commit | a539fda0cf6342398fae802827221ed15df5de56 (patch) | |
tree | 3ae6291bfa0f1eb860439c707735a4bfb2b5eb06 /mesonbuild/mesonlib.py | |
parent | e81acbd6069e8c1ae8e3be7bb83ddc239009d42d (diff) | |
download | meson-a539fda0cf6342398fae802827221ed15df5de56.zip meson-a539fda0cf6342398fae802827221ed15df5de56.tar.gz meson-a539fda0cf6342398fae802827221ed15df5de56.tar.bz2 |
fix LGTM warnings
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r-- | mesonbuild/mesonlib.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index 07cc3a1..2c1727b 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -20,8 +20,7 @@ import stat import time import platform, subprocess, operator, os, shlex, shutil, re import collections -from enum import IntEnum -from functools import lru_cache, wraps +from functools import lru_cache, wraps, total_ordering from itertools import tee, filterfalse from tempfile import TemporaryDirectory import typing as T @@ -348,7 +347,7 @@ def classify_unity_sources(compilers: T.Iterable['CompilerType'], sources: T.Ite return compsrclist -class MachineChoice(IntEnum): +class MachineChoice(enum.IntEnum): """Enum class representing one of the two abstract machine names used in most places: the build, and host, machines. @@ -1617,7 +1616,7 @@ def relative_to_if_possible(path: Path, root: Path, resolve: bool = False) -> Pa except ValueError: return path -class LibType(IntEnum): +class LibType(enum.IntEnum): """Enumeration for library types.""" @@ -1854,6 +1853,7 @@ def _classify_argument(key: 'OptionKey') -> OptionType: return OptionType.PROJECT +@total_ordering class OptionKey: """Represents an option key in the various option dictionaries. |