mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-03 09:49:21 +01:00
Drop Undocumented Job.__lt__
(#3432)
This commit is contained in:
parent
28afeccf70
commit
5b629ede56
2 changed files with 0 additions and 7 deletions
|
@ -804,9 +804,6 @@ class Job:
|
|||
f"Neither 'telegram.ext.Job' nor 'apscheduler.job.Job' has attribute '{item}'"
|
||||
) from exc
|
||||
|
||||
def __lt__(self, other: object) -> bool:
|
||||
return False
|
||||
|
||||
def __eq__(self, other: object) -> bool:
|
||||
if isinstance(other, self.__class__):
|
||||
return self.id == other.id
|
||||
|
|
|
@ -491,10 +491,6 @@ class TestJobQueue:
|
|||
assert hash(job) != hash(job_2)
|
||||
assert hash(job) == hash(job_3)
|
||||
|
||||
assert not job < job
|
||||
assert not job < job_2
|
||||
assert not job < job_3
|
||||
|
||||
async def test_process_error_context(self, job_queue, app):
|
||||
app.add_error_handler(self.error_handler_context)
|
||||
|
||||
|
|
Loading…
Reference in a new issue