by matsemann · 12mo ago · 0 comments
You probably want something like pydantic’s @validate_call decorator.
Can you say more, maybe with with an example, about a function which can't be typed? Are you talking about generating bytecode at runtime, defining functions with lambda expressions, or something else?