@@ -1488,14 +1488,17 @@ def _dp(s, val=None):
14881488 # _dp("isinst", isinstance(node.frame(), nodes.ClassDef))
14891489 # _dp("funcdef", isinstance(called, nodes.FunctionDef))
14901490 _dp ("called" , called )
1491- _dp ("bound method init in called" , "BoundMethod __init__ of builtins.object" in str (called ))
1491+ _dp (
1492+ "bound method init in called" ,
1493+ "BoundMethod __init__ of builtins.object" in str (called ),
1494+ )
14921495 _dp ("called.args" , called .args )
14931496 _dp ("frame body" , node .frame ().body )
14941497 # _dp("called in frame body", called in node.frame().body)
14951498 # _dp("dec names", called.decoratornames())
14961499
14971500 def _call_site_has_args (cs ):
1498- "True if any args passed."
1501+ """ True if any args passed."" "
14991502 has_args = (
15001503 False
15011504 or len (cs .positional_arguments ) > 0
@@ -1514,7 +1517,9 @@ def _call_site_has_args(cs):
15141517 # is handled elsewhere.
15151518 if "BoundMethod __init__ of builtins.object" in str (called ):
15161519 if _call_site_has_args (call_site ):
1517- self .add_message ("too-many-function-args" , node = node , args = ("__init__" ,))
1520+ self .add_message (
1521+ "too-many-function-args" , node = node , args = ("__init__" ,)
1522+ )
15181523 return
15191524
15201525 if len (called .argnames ()) != len (set (called .argnames ())):
0 commit comments