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

@type_check_on_traceback
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.
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to