diff --git a/tools/boost_names.py b/tools/boost_names.py index 897b4fd6ddf8..89926ec1557a 100755 --- a/tools/boost_names.py +++ b/tools/boost_names.py @@ -48,12 +48,12 @@ def __init__(self, name: str, shared: T.List[str], static: T.List[str], single: self.single = sorted(set(single)) self.multi = sorted(set(multi)) - def __lt__(self, other: object) -> T.Union[bool, 'NotImplemented']: + def __lt__(self, other: object) -> bool: if isinstance(other, BoostLibrary): return self.name < other.name return NotImplemented - def __eq__(self, other: object) -> T.Union[bool, 'NotImplemented']: + def __eq__(self, other: object) -> bool: if isinstance(other, BoostLibrary): return self.name == other.name elif isinstance(other, str): @@ -71,7 +71,7 @@ def __init__(self, name: str, key: str, desc: str, libs: T.List[BoostLibrary]): self.desc = desc self.libs = libs - def __lt__(self, other: object) -> T.Union[bool, 'NotImplemented']: + def __lt__(self, other: object) -> bool: if isinstance(other, BoostModule): return self.key < other.key return NotImplemented