2618 isinstance(expr, ast.Attribute) and expr.attr == "overload" |
2618 isinstance(expr, ast.Attribute) and expr.attr == "overload" |
2619 ) |
2619 ) |
2620 |
2620 |
2621 def emptyBody(body): |
2621 def emptyBody(body): |
2622 def isStrOrEllipsis(node): |
2622 def isStrOrEllipsis(node): |
2623 return ( |
2623 return isinstance(node, ast.Constant) and ( |
2624 isinstance(node, ast.Constant) |
2624 node.value is Ellipsis or isinstance(node.value, str) |
2625 and (node.value is Ellipsis or isinstance(node.value, str)) |
|
2626 ) |
2625 ) |
2627 |
2626 |
2628 # Function body consist solely of `pass`, `...`, and/or (doc)string literals |
2627 # Function body consist solely of `pass`, `...`, and/or (doc)string literals |
2629 return all( |
2628 return all( |
2630 isinstance(stmt, ast.Pass) |
2629 isinstance(stmt, ast.Pass) |