Klaus Greff
Klaus Greff
Sorry, for that run I was using `UniformInt(lower=1, upper=100)`. But it still seems strange to me that it would be so obsessed with 78.
Hey @rueberger! Happy to see you more and more often :-) But I am afraid this project is currently in a beta state at best and unmaintained. AFAICT The original...
Wow, thanks for the quick response. A compromise solution would be possible I agree. But I do not see any advantage. To me it seems that the `get_type_hints` approach would...
Ah, I see. Performance concerns are a good point. `get_type_hints` can be quit slow. But why couldn't the results be cached? Is there a problem with something like this? ```python...
Inside a function you have access to the function object. So I would just pass that along to the check_argument_types function. ```python def foo(x: int): check_argument_types_v2(foo, {"x": x}) ```
I have good news for you then. Because this works. Try it. 😉 ``` python def foo(): print(foo) foo() ``` https://stackoverflow.com/questions/852401/python-getting-a-reference-to-a-function-from-inside-itself
Oh, I see. I can see now that I have underestimated both you and the problem. I apologize! Thank you for explaining.
Thanks :-). Yeah I definitely misunderstood what accessing the function name from inside the function does. I thought it was a special trick, but it just accesses the name from...
To upgrade to the new version of typeguard while still keeping it compatible with jaxtyping (a combination we use heavily), I ended up implementing an escape hatch for the instrumentation...
Yes that works for me, Thanks!