Package horizons :: Package ext :: Module typing :: Class Iterator
[hide private]
[frames] | no frames]

Class Iterator

object --+                
   Generic --+            
    object --+            
  ??.Generic-1 --+        
          Iterable --+    
    object --+       |    
             |       |    
       Generic --+   |    
                 |   |    
        object --+   |    
                 |   |    
      ??.Generic-1 --+    
        ??.Iterable-25 --+
Known Subclasses:

Abstract base class for generic types.

A generic type is typically declared by inheriting from an instantiation of this class with one or more type variables. For example, a generic mapping type might be defined as:

 class Mapping(Generic[KT, VT]):
     def __getitem__(self, key: KT) -> VT:
     # Etc.

This class can then be used as follows:

 def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT:
         return mapping[key]
     except KeyError:
         return default
Nested Classes [hide private]
    Inherited from Generic
Metaclass for generic types.
The most base type
Instance Methods [hide private]
    Inherited from object
x.__delattr__('name') <==> del
default object formatter
x.__getattribute__('name') <==>
x.__init__(...) initializes x; see help(type(x)) for signature
helper for pickle
helper for pickle
x.__setattr__('name', value) <==> = value
size of object in memory, in bytes
Abstract classes can override this to customize issubclass().
Static Methods [hide private]
    Inherited from Generic
a new object with type S, a subtype of T
__new__(cls, *args, **kwds)
Class Variables [hide private]
  __args__ = None
  __origin__ = None

Inherited from unreachable.Generic: __parameters__

    Inherited from Generic
  __abstractmethods__ = frozenset([])
  _abc_cache = <_weakrefset.WeakSet object at 0x7f8bace75b50>
  _abc_negative_cache = <_weakrefset.WeakSet object at 0x7f8bace...
  _abc_negative_cache_version = 20
  _abc_registry = <_weakrefset.WeakSet object at 0x7f8bace75b10>
Properties [hide private]
    Inherited from object
the object's class