A proposal for java's "throws" in python: Extend type hints to cover exceptions
https://programming.dev/post/5934266

A proposal for java's "throws" in python: Extend type hints to cover exceptions - programming.dev
This is a discussion on Python’s forums about adding something akin to a throws
keyword in python.
Aren’t checked exceptions in Java generally regarded as a bad mistake?
I heard the same, but not sure why. Do you have a link?