chore: Update typing + noqa - flake8 failures
This commit is contained in:
parent
c09d61f15f
commit
15af545acf
2 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue