
I realize I never responded to this suggestion. Sebastian had a similar idea in https://github.com/python/typing/issues/277#issuecomment-961061916: use the warnings module to emit a message. Personally I don't care much for the exact runtime behavior, but I'm wary of making it too complicated. I don't feel like tracking down where a call comes from is a very compelling use case: it's easy to just grep for, and your type checker should give you an error for any call to reveal_type() anyway. El mar, 18 ene 2022 a las 13:02, James H-B (<gobot1234yt@gmail.com>) escribió:
Would it be worthwhile also include filename, line and column numbers like type checkers do so you could easily track down where the call is from at runtime or should you just run a type checker to get them? _______________________________________________ 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