aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-09-01 19:58:10 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2020-09-08 20:15:58 +0200
commite681235e5fe3ee0a40dd6a3f5922c2c4b0cf98b4 (patch)
tree947e279889b5f7682dcd4c11beea279c24cb67bf /tools
parent47373a2438c0fdeedd229b921c9d7e8dc1fc956a (diff)
downloadmeson-e681235e5fe3ee0a40dd6a3f5922c2c4b0cf98b4.zip
meson-e681235e5fe3ee0a40dd6a3f5922c2c4b0cf98b4.tar.gz
meson-e681235e5fe3ee0a40dd6a3f5922c2c4b0cf98b4.tar.bz2
typing: fix code review
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 b66c6cc..897b4fd 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: T.Any) -> T.Union[bool, 'NotImplemented']:
+ def __lt__(self, other: object) -> T.Union[bool, 'NotImplemented']:
if isinstance(other, BoostLibrary):
return self.name < other.name
return NotImplemented
- def __eq__(self, other: T.Any) -> T.Union[bool, 'NotImplemented']:
+ def __eq__(self, other: object) -> T.Union[bool, 'NotImplemented']:
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: T.Any) -> T.Union[bool, 'NotImplemented']:
+ def __lt__(self, other: object) -> T.Union[bool, 'NotImplemented']:
if isinstance(other, BoostModule):
return self.key < other.key
return NotImplemented