3 ms·
The beauty of Python is that it supports both nominal subtyping (class hierarchies) and structural subtyping (protocols).
by BerislavLopac 5y ago
The beauty of Python is that it supports both nominal subtyping (class hierarchies) and structural subtyping (protocols).