formatting fixes for latest black

This commit is contained in:
Damien Elmes 2020-08-31 13:32:49 +10:00
parent ccfa989c62
commit ac265fe75a
3 changed files with 21 additions and 18 deletions

View file

@ -1382,7 +1382,8 @@ where id = ?
self.col.backend.restore_buried_and_suspended_cards(ids)
def unbury_cards_in_current_deck(
self, mode: UnburyCurrentDeckModeValue = UnburyCurrentDeckMode.ALL,
self,
mode: UnburyCurrentDeckModeValue = UnburyCurrentDeckMode.ALL,
) -> None:
self.col.backend.unbury_cards_in_current_deck(mode)

View file

@ -2863,8 +2863,7 @@ def mytest(web: AnkiWebView):
"""
)
gui_hooks.webview_did_inject_style_into_page.append(mytest)
'''
gui_hooks.webview_did_inject_style_into_page.append(mytest)'''
_hooks: List[Callable[["aqt.webview.AnkiWebView"], None]] = []

View file

@ -230,4 +230,7 @@ def handle_post(path: str) -> Response:
response.headers["Content-Type"] = "application/binary"
return response
else:
return flask.make_response(f"Unhandled post to {path}", HTTPStatus.FORBIDDEN,)
return flask.make_response(
f"Unhandled post to {path}",
HTTPStatus.FORBIDDEN,
)