Duck Typing in Python
Duck typing is based on the idea that if something looks, swims, and quacks like a duck, then it's probably a duck.-
Traditional approach
-
Abstract classes in Python Refer Here
-
Protocol removes the need for explicit inheritance and gives interface like functionality
Type Hinting
- Refer Here for types
