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.

My counter: let’s throw Java into a pit
@Maoo @onlinepersona
That's unfair. Java did everyone a huge favour by giving a practical demonstration of why (mandatory) checked exceptions are awful.