DEV Community

Discussion on: Tiny python docstring tip

Collapse
 
dperetti profile image
Dominique PERETTI

I would rather use stubs, as explained here github.com/python/mypy/wiki/Creati...

Collapse
 
tadaboody profile image
Tomer

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)