# eric7.Plugins.CheckerPlugins.CodeStyleChecker.Annotations.AnnotationsUnionVisitor

Module implementing a node visitor for checking the import of typing.Union.

### Global Attributes

None

### Classes

AnnotationsUnionVisitor | Class implementing a node visitor for checking the import of typing.Union.

### Functions

None

## AnnotationsUnionVisitor

Class implementing a node visitor for checking the import of typing.Union.

### Derived from

ast.NodeVisitor

### Class Attributes

AttributeName
FullName
ModuleName

### Class Methods

None

### Methods

AnnotationsUnionVisitor | Constructor
getIssues | Public method to get the collected Union nodes.
visit_Attribute | Public method to handle an ast.Attribute node.
visit_Import | Public method to handle an ast.Import node.
visit_ImportFrom | Public method to handle an ast.ImportFrom node.
visit_Subscript | Public method to handle an ast.Subscript node.

### Static Methods

None

#### AnnotationsUnionVisitor (Constructor)

AnnotationsUnionVisitor()

Constructor

#### AnnotationsUnionVisitor.getIssues

getIssues()

Public method to get the collected Union nodes.

Return:
  list of collected nodes

Return Type:
  list of ast.AST

#### AnnotationsUnionVisitor.visit_Attribute

visit_Attribute(node)

Public method to handle an ast.Attribute node.

node (ast.Attribute)
  reference to the node to be handled

#### AnnotationsUnionVisitor.visit_Import

visit_Import(node)

Public method to handle an ast.Import node.

node (ast.Import)
  reference to the node to be handled

#### AnnotationsUnionVisitor.visit_ImportFrom

visit_ImportFrom(node)

Public method to handle an ast.ImportFrom node.

node (ast.ImportFrom)
  reference to the node to be handled

#### AnnotationsUnionVisitor.visit_Subscript

visit_Subscript(node)

Public method to handle an ast.Subscript node.

node (ast.Subscript)
  reference to the node to be handled

Up