Skip to content

Commit

Permalink
Remove type hinting on Future inheritance
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
  • Loading branch information
noxdafox committed Nov 21, 2024
1 parent 49c2ec5 commit da8e4c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pebble/common/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, msg, code=0, pid=None):
self.pid = pid


class PebbleFuture(Future[T]):
class PebbleFuture(Future):
# Same as base class, removed logline
def set_running_or_notify_cancel(self):
"""Mark the future as running or process any cancel notifications.
Expand Down Expand Up @@ -71,7 +71,7 @@ def set_running_or_notify_cancel(self):
raise RuntimeError('Future in unexpected state')


class ProcessFuture(PebbleFuture[T]):
class ProcessFuture(PebbleFuture):
def cancel(self):
"""Cancel the future.
Expand Down

0 comments on commit da8e4c4

Please sign in to comment.