Module implementing a node visitor for checking the use of deprecated 'typing' symbols.
None |
AnnotationsDeprecationsVisitor | Class implementing a node visitor for checking the use of deprecated 'typing' symbols. |
AnnotationsFutureImportVisitor | Class implementing a node visitor to dtermine, if the annotations __future__ import is present. |
None |
Class implementing a node visitor for checking the use of deprecated 'typing' symbols.
NameReplacements |
visit_AsyncFunctionDef |
None |
AnnotationsDeprecationsVisitor | Constructor |
__checkDeprecation | Private method to check, if the given name is deprecated. |
getIssues | Public method to get the list of detected issues. |
visit_AnnAssign | Public method to handle an ast.AnnAssign node. |
visit_Attribute | Public method to handle an ast.Attribute node. |
visit_FunctionDef | Public method to handle an ast.FunctionDef or ast.AsyncFunctionDef node. |
visit_Import | Public method to handle an ast.Import node. |
visit_ImportFrom | Public method to handle an ast.ImportFrom node. |
None |
Constructor
Private method to check, if the given name is deprecated.
Public method to get the list of detected issues.
Public method to handle an ast.AnnAssign node.
Public method to handle an ast.Attribute node.
Public method to handle an ast.FunctionDef or ast.AsyncFunctionDef node.
Public method to handle an ast.Import node.
Public method to handle an ast.ImportFrom node.
Class implementing a node visitor to dtermine, if the annotations __future__ import is present.
This class is used to determine usage of annotations for Python 3.8.
None |
None |
AnnotationsFutureImportVisitor | Constructor |
futureImportPresent | Public method to check, if a 'from __future__ import annotations' statement exists. |
visit_ImportFrom | Public method to handle an ast.ImportFrom node. |
None |
Constructor
Public method to check, if a 'from __future__ import annotations' statement exists.
Public method to handle an ast.ImportFrom node.