
El lun, 17 ene 2022 a las 9:21, Eric Traut (<eric@traut.com>) escribió:
This proposal makes sense to me. I would recommend adding `reveal_locals` as well. It's not used as often as `reveal_type`, but it's kind of a "sister function". They're both described in PEP 484, and AFAIK, all type checkers support both.
Thanks for bringing this up! PEP 484 mentions neither reveal_type() nor reveal_locals(), and as far as I can tell reveal_locals() is supported only by mypy and pyright. We could still add it to typing but the argument isn't nearly as strong as for reveal_type().
reveal_type() is used (but not defined) in PEPs 586, 612, 647, 655, 673, and 675.
-Eric
-- Eric Traut Contributor to Pyright & Pylance Microsoft _______________________________________________ Typing-sig mailing list -- typing-sig@python.org To unsubscribe send an email to typing-sig-leave@python.org https://mail.python.org/mailman3/lists/typing-sig.python.org/ Member address: jelle.zijlstra@gmail.com