Collection Interface ABCs
collections.abc.MutableSet
Set interface extended by add and discard, enabling mutable set operations.
Formal Syntax & Structure
python syntaxpython
collections.abc.MutableSetReturn Value
type
Abstract base class object representing the described interface; use it for recognition or inheritance.
Working Example
Example Snippetpython
import collections.abcprint(isinstance({1,2},collections.abc.MutableSet))