Proxies

Inference does not only yield nodes. When a value has no node of its own — an instance of a class, a bound method, a running generator — it is represented by a proxy that forwards attribute lookups to the node it wraps.

Instance, BoundMethod and UnboundMethod are the ones you meet most often, and are part of the general API.

astroid.bases.Proxy([proxied])

A simple proxy object.

astroid.bases.Generator(parent[, ...])

A special node representing a generator.

astroid.bases.AsyncGenerator(*args, **kwargs)

Special node representing an async generator.

astroid.bases.UnionType(left, right[, parent])

Special node representing new style typing unions.