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

Type _ProtocolMeta

object --+            
         |            
      type --+        
             |        
    TypingMeta --+    
                 |    
object --+       |    
         |       |    
      type --+   |    
             |   |    
   abc.ABCMeta --+    
                 |    
       GenericMeta --+
                     |
                    _ProtocolMeta

Internal metaclass for _Protocol.

This exists so _Protocol classes can be generic without deriving from Generic.

Instance Methods [hide private]
bool
__instancecheck__(self, obj)
Override for isinstance(instance, cls).
bool
__subclasscheck__(self, cls)
Override for issubclass(subclass, cls).
 
_get_protocol_attrs(self)
    Inherited from GenericMeta
 
__eq__(self, other)
x==y
 
__getitem__(self, params)
 
__hash__(self)
hash(x)
 
__repr__(self)
repr(x)
 
_get_type_vars(self, tvars)
    Inherited from TypingMeta
the object's type
__init__(self, *args, **kwds)
x.__init__(...) initializes x; see help(type(x)) for signature
 
_eval_type(self, globalns, localns)
Override this in subclasses to interpret forward references.
    Inherited from abc.ABCMeta
 
_dump_registry(cls, file=None)
Debug helper to print the ABC registry.
 
register(cls, subclass)
Register a virtual subclass of an ABC.
    Inherited from type
 
__call__(x, ...)
x(...)
 
__delattr__(...)
x.__delattr__('name') <==> del x.name
 
__ge__(x, y)
x>=y
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
__gt__(x, y)
x>y
 
__le__(x, y)
x<=y
 
__lt__(x, y)
x<y
 
__ne__(x, y)
x!=y
 
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
list of immediate subclasses
__subclasses__()
list
mro()
return a type's method resolution order
    Inherited from object
 
__format__(...)
default object formatter
 
__reduce__(...)
helper for pickle
 
__reduce_ex__(...)
helper for pickle
int
__sizeof__()
size of object in memory, in bytes
 
__str__(x)
str(x)
 
__subclasshook__(...)
Abstract classes can override this to customize issubclass().
Class Methods [hide private]
    Inherited from TypingMeta
 
assert_no_subclassing(cls, bases)
Static Methods [hide private]
    Inherited from GenericMeta
a new object with type S, a subtype of T
__new__(cls, name, bases, namespace, tvars=None, args=None, origin=None, extra=None)
Class Variables [hide private]
    Inherited from TypingMeta
  _is_protocol = False
    Inherited from abc.ABCMeta
  _abc_invalidation_counter = 22
Properties [hide private]
    Inherited from type
  __abstractmethods__
  __base__
  __bases__
  __basicsize__
  __dictoffset__
  __flags__
  __itemsize__
  __mro__
  __name__
  __weakrefoffset__
    Inherited from object
  __class__
the object's class
Method Details [hide private]

__instancecheck__(self, obj)

 

Override for isinstance(instance, cls).

Returns: bool
Overrides: type.__instancecheck__
(inherited documentation)

__subclasscheck__(self, cls)

 

Override for issubclass(subclass, cls).

Returns: bool
Overrides: type.__subclasscheck__
(inherited documentation)