aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-10-11 20:53:24 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2020-10-12 00:23:59 +0300
commit96c31d9dbced6a6537dc04bdd9505fbbbb8ff9bf (patch)
tree10e67a84fb56156f1b636035808040bbe708aa8c /tools
parent7b1cc95c7f941b517a653f0d915e2b3bdacc3aa9 (diff)
downloadmeson-96c31d9dbced6a6537dc04bdd9505fbbbb8ff9bf.zip
meson-96c31d9dbced6a6537dc04bdd9505fbbbb8ff9bf.tar.gz
meson-96c31d9dbced6a6537dc04bdd9505fbbbb8ff9bf.tar.bz2
typing: fix mypy typing error
Diffstat (limited to 'tools')
-rwxr-xr-xtools/boost_names.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/boost_names.py b/tools/boost_names.py
index 897b4fd..89926ec 100755
--- a/tools/boost_names.py
+++ b/tools/boost_names.py
@@ -48,12 +48,12 @@ class BoostLibrary():
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 @@ class BoostModule():
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