Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Fixes mypy error on redefining attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
kushaldas committed Jan 3, 2020
1 parent 8cb672b commit 97eed4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions securedrop_proxy/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ def __init__(self, conf=None, req=Req(), on_save=None, on_done=None, timeout: fl
self.req = req
self.res = None
self.on_save = on_save
if on_done is not None:
if on_done:
self.on_done = on_done

self.timeout = float(timeout) if timeout else 10

self._prepared_request = None

def on_done(self, res):
def on_done(self, res): # type: ignore
callbacks.on_done(res)

@staticmethod
Expand Down

0 comments on commit 97eed4b

Please sign in to comment.