Skip to content

Commit 6b5bd9f

Browse files
committed
Remove debug/dev cruft.
1 parent 03f53c0 commit 6b5bd9f

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

pylint/checkers/typecheck.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,35 +1468,6 @@ def visit_call(self, node: nodes.Call) -> None:
14681468
# and count the positional arguments.
14691469
call_site = astroid.arguments.CallSite.from_call(node)
14701470

1471-
### Debug cruft used during dev, will remove when done.
1472-
### def _dp(s, val=None):
1473-
### return
1474-
### ## if "Attribute.__init__" not in str(node):
1475-
### ## return
1476-
### ## if val is None:
1477-
### ## print(f" {s}", flush=True)
1478-
### ## else:
1479-
### ## print(f" {s}: {val}", flush=True)
1480-
### _dp("-" * 25)
1481-
### _dp("visit call, node", node)
1482-
### _dp("Data dump for __init__ call")
1483-
### _dp("call_site", call_site)
1484-
### _dp("call_site args", call_site.arguments)
1485-
### _dp("call site positional args:", call_site.positional_arguments)
1486-
### _dp("call site keyword args:", call_site.keyword_arguments)
1487-
### _dp("call site invalid args", call_site.has_invalid_arguments())
1488-
### _dp("call site inv keywords", call_site.has_invalid_keywords())
1489-
### _dp("node args", node.args)
1490-
### _dp("node frame", node.frame())
1491-
### _dp("isinst", isinstance(node.frame(), nodes.ClassDef))
1492-
### _dp("funcdef", isinstance(called, nodes.FunctionDef))
1493-
### _dp("called", called)
1494-
### _dp("bound method init in called", "BoundMethod __init__ of builtins.object" in str(called))
1495-
### _dp("called.args", called.args)
1496-
### _dp("frame body", node.frame().body)
1497-
### _dp("called in frame body", called in node.frame().body)
1498-
### _dp("dec names", called.decoratornames())
1499-
15001471
def _call_site_has_args(cs: arguments.CallSite) -> bool:
15011472
"""True if any args passed."""
15021473
has_args = (

0 commit comments

Comments
 (0)