MCPcopy Index your code
hub / github.com/python/mypy / visit_Assert

Method visit_Assert

mypy/fastparse.py:1403–1405  ·  view source on GitHub ↗
(self, n: ast3.Assert)

Source from the content-addressed store, hash-verified

1401
1402 # Assert(expr test, expr? msg)
1403 def visit_Assert(self, n: ast3.Assert) -> AssertStmt:
1404 node = AssertStmt(self.visit(n.test), self.visit(n.msg))
1405 return self.set_line(node, n)
1406
1407 # Import(alias* names)
1408 def visit_Import(self, n: ast3.Import) -> Import:

Callers

nothing calls this directly

Calls 3

visitMethod · 0.95
set_lineMethod · 0.95
AssertStmtClass · 0.90

Tested by

no test coverage detected