diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2020-09-01 19:58:10 +0200 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2020-09-08 20:15:58 +0200 |
commit | e681235e5fe3ee0a40dd6a3f5922c2c4b0cf98b4 (patch) | |
tree | 947e279889b5f7682dcd4c11beea279c24cb67bf /mesonbuild/build.py | |
parent | 47373a2438c0fdeedd229b921c9d7e8dc1fc956a (diff) | |
download | meson-e681235e5fe3ee0a40dd6a3f5922c2c4b0cf98b4.zip meson-e681235e5fe3ee0a40dd6a3f5922c2c4b0cf98b4.tar.gz meson-e681235e5fe3ee0a40dd6a3f5922c2c4b0cf98b4.tar.bz2 |
typing: fix code review
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r-- | mesonbuild/build.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index bf325b0..369ac7b 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -372,22 +372,22 @@ a hard error in the future.'''.format(name)) if not hasattr(self, 'typename'): raise RuntimeError('Target type is not set for target class "{}". This is a bug'.format(type(self).__name__)) - def __lt__(self, other: T.Any) -> T.Union[bool, type(NotImplemented)]: + def __lt__(self, other: object) -> T.Union[bool, type(NotImplemented)]: if not hasattr(other, 'get_id') and not callable(other.get_id): return NotImplemented return self.get_id() < other.get_id() - def __le__(self, other: T.Any) -> T.Union[bool, type(NotImplemented)]: + def __le__(self, other: object) -> T.Union[bool, type(NotImplemented)]: if not hasattr(other, 'get_id') and not callable(other.get_id): return NotImplemented return self.get_id() <= other.get_id() - def __gt__(self, other: T.Any) -> T.Union[bool, type(NotImplemented)]: + def __gt__(self, other: object) -> T.Union[bool, type(NotImplemented)]: if not hasattr(other, 'get_id') and not callable(other.get_id): return NotImplemented return self.get_id() > other.get_id() - def __ge__(self, other: T.Any) -> T.Union[bool, type(NotImplemented)]: + def __ge__(self, other: object) -> T.Union[bool, type(NotImplemented)]: if not hasattr(other, 'get_id') and not callable(other.get_id): return NotImplemented return self.get_id() >= other.get_id() |