chore: Update typing + noqa - flake8 failures

This commit is contained in:
gavin 2022-05-23 18:55:55 +05:30
parent c09d61f15f
commit 15af545acf
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
import operator
import re
from functools import cached_property
from typing import Any, Dict, List, Tuple, Union
from typing import Any, Callable, Dict, List, Tuple, Union
import frappe
from frappe import _
@ -141,7 +141,7 @@ def change_orderby(order: str):
# default operators
OPERATOR_MAP: Dict[str, "function"] = {
OPERATOR_MAP: Dict[str, Callable] = {
"+": operator.add,
"=": operator.eq,
"-": operator.sub,

View file

@ -104,4 +104,4 @@ class Identicon(object):
save_handler(self.image, fp, "")
finally:
fp.seek(0)
return "data:image/png;base64,{0}".format(base64.b64encode(fp.read()))
return "data:image/png;base64,{0}".format(base64.b64encode(fp.read())) # noqa