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?
This post covers it pretty well phauer.com/2015/checked-exceptions-are-evil/
Checked Exceptions are Evil

The concept of checked exceptions is questionable. They lead to breaking signatures, scattered logic and boilerplate. We'll see what we can do instead.

Philipp Hauer's Blog