'Collections.abc.Iterable is a superclass of my custom-made class even though I didn't inherit it

I made a class and implemented __iter__. Then, issubclass({class I made}, collections.abc.Iterable) showed True. Does it automatically inherits collections.abc.Iterable when I write __iter__?



Solution 1:[1]

As you tagged python-3.x try pip3 install sports

Also you can try adding the module location to your sys path like this:

import sys
sys.path.insert(0, r"/your/module/path")

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 prvtat