A proposal for java's "throws" in python: Extend type hints to cover exceptions
A proposal for java's "throws" in python: Extend type hints to cover exceptions
discuss.python.org
Extend type hints to cover exceptions
PEP 484 introduced type hints, at this time documenting exceptions was left to docstrings. I seek to suggest a reason this feature might be desirable along with how it might be used. Error handling i...

This is a discussion on Python's forums about adding something akin to a throws keyword in python.