DEV Community

loading...

Discussion on: Tiny python docstring tip

Collapse
tadaboody profile image
Tomer Author

Stubs and abstract classes aren't the same thing. Stubs annotate existing classes/interfaces/methods helping mypy make static checks.
while abstract classes declare new constructs, used to later be inherited from and implemented (with only runtime checks)