Module implementing a node visitor to check default match cases.
None |
DefaultMatchCaseVisitor | Class implementing a node visitor to check default match cases. |
None |
Class implementing a node visitor to check default match cases.
Note: This class is modeled after flake8-spm v0.0.1.
None |
None |
DefaultMatchCaseVisitor | Constructor |
__badNodes | Private method to yield bad match nodes. |
__emptyMatchDefault | Private method to check for an empty default match case. |
__findBadNode | Private method returning a reference to the bad node of a case node. |
__lastStatementDoesNotRaise | Private method to check that the last case statement does not raise an exception. |
__returnPrecedesExceptionRaising | Private method to check that no return precedes an exception raising. |
visit_Match | Public method to handle Match nodes. |
None |
Constructor
Private method to yield bad match nodes.
Private method to check for an empty default match case.
Private method returning a reference to the bad node of a case node.
Private method to check that the last case statement does not raise an exception.
Private method to check that no return precedes an exception raising.
Public method to handle Match nodes.