[Python-ideas] Check type hints in stack trace printing

Jacco van Dorp j.van.dorp at deonet.nl
Wed Jun 20 06:15:45 EDT 2018

To clarify some more, you'd then have to use the decorator like:

def three(arg: str) -> str:
    return "{}({}) ".format(arg, len(arg))

on every function where you want this behaviour. Note that this will
also emit warnings on tracebacks of exceptions that are later
silenced, and afaik there's no easy way around that.

More information about the Python-ideas mailing list