class HasSlots: (source)
Known subclasses: pytype.abstract._classes.CallableClass
, pytype.abstract._classes.TupleClass
, pytype.abstract._instances.Dict
, pytype.abstract._instances.Iterator
, pytype.abstract._instances.List
, pytype.abstract._typing.AnnotationClass
, pytype.abstract._typing.Union
, pytype.overlays.attr_overlay.AttribInstance
, pytype.overlays.special_builtins.ClassMethodInstance
, pytype.overlays.special_builtins.PropertyInstance
, pytype.overlays.special_builtins.StaticMethodInstance
, pytype.overlays.special_builtins.TypeTemplate
, pytype.overlays.subprocess_overlay.Popen
Mix-in for overriding slots with custom methods. This makes it easier to emulate built-in classes like dict which need special handling of some magic methods (__setitem__ etc.)
Method | call |
Call the (original) pytd version of a method we overwrote. |
Method | get |
Undocumented |
Method | init |
Undocumented |
Method | set |
Add a new NativeFunction slot to this value. |
Method | set |
Add a new slot to this value. |
Class Variable | overloads |
Undocumented |
Instance Variable | _slots |
Undocumented |
Instance Variable | _super |
Undocumented |
pytype.abstract._classes.CallableClass
, pytype.abstract._classes.TupleClass
, pytype.overlays.subprocess_overlay.Popen
Undocumented