💾 Archived View for tris.fyi › pydoc › _py_abc captured on 2023-04-26 at 13:24:24. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-01-08)
-=-=-=-=-=-=-
This module has no docstring.
Metaclass for defining Abstract Base Classes (ABCs). Use this metaclass to create an ABC. An ABC can be subclassed directly, and then acts as a mix-in class. You can also register unrelated concrete classes (even built-in classes) and unrelated ABCs as 'virtual subclasses' -- these and their descendants will be considered subclasses of the registering ABC by the built-in issubclass() function, but the registering ABC won't show up in their MRO (Method Resolution Order) nor will method implementations defined by the registering ABC be callable (not even via super()).
mro(self, /) Return a type's method resolution order.
register(cls, subclass) Register a virtual subclass of an ABC. Returns the subclass, to allow usage as a class decorator.
add(self, item)
clear(self)
copy(self)
difference(self, other)
difference_update(self, other)
discard(self, item)
intersection(self, other)
intersection_update(self, other)
isdisjoint(self, other)
issubset(self, other)
issuperset(self, other)
pop(self)
remove(self, item)
symmetric_difference(self, other)
symmetric_difference_update(self, other)
union(self, other)
update(self, other)
get_cache_token() Returns the current ABC cache token. The token is an opaque object (supporting equality testing) identifying the current version of the ABC cache for virtual subclasses. The token changes with every call to ``register()`` on any ABC.