Skip to content

Commit

Permalink
typing: fix mypy typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
mensinda authored and jpakkane committed Oct 11, 2020
1 parent 7b1cc95 commit 96c31d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/boost_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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
Expand Down

0 comments on commit 96c31d9

Please sign in to comment.