Skip to content

Commit acd56ab

Browse files
Евгений БлиновЕвгений Блинов
authored andcommitted
Mypy's issues
1 parent e1b8017 commit acd56ab

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

getsources/hash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def get_body_text(function: Callable[..., Any], source: str, skip_docstring: boo
2020

2121
else:
2222
function_node = tree.body[0]
23-
body_nodes = function_node.body
23+
body_nodes = function_node.body # type: ignore[attr-defined]
2424
first = body_nodes[0]
2525

2626
if skip_docstring and body_nodes and (isinstance(first, Expr) and isinstance(first.value, Constant) and isinstance(first.value.value, str)):

getsources/helpers/is_lambda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
from typing import Any, Callable
33

44

5-
def is_lambda(function: Callable[..., Any]):
5+
def is_lambda(function: Callable[..., Any]) -> bool:
66
return isinstance(function, FunctionType) and function.__name__ == "<lambda>"

0 commit comments

Comments
 (0)