Skip to content

Commit

Permalink
Revert "Revert "Drop Undocumented Job.__lt__ (#3432)""
Browse files Browse the repository at this point in the history
This reverts commit fdd3a63.
  • Loading branch information
clot27 committed Dec 21, 2022
1 parent fdd3a63 commit a38abc6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions telegram/ext/_jobqueue.py
Expand Up @@ -804,9 +804,6 @@ def __getattr__(self, item: str) -> object:
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
Expand Down
4 changes: 0 additions & 4 deletions tests/test_jobqueue.py
Expand Up @@ -491,10 +491,6 @@ async def test_equality(self, job_queue):
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)

Expand Down

0 comments on commit a38abc6

Please sign in to comment.