Wessel

Results 304 comments of Wessel

@nstarman This is very clever! I like this a lot. This actually sounds much better than attempting to override `Union.__repr__`. I'm thinking that this transformation could happen inside `resolve_type_hint`. Since...

> Meanwhile can I make this a no-op for Python 3.14+? Absolutely. Let's do this for now until we figure out whether this is still possible for 3.14+.

@nstarman that would be amazing! :)

@tbsexton, you're completely right! I definitely did not read the docs as carefully as I should have. Let me adjust the title and the description of the PR. To add...

@nstarman Hmm, we'll probably need to abandon this approach and might need to abandon union aliases all together. Perhaps not a huge deal since overriding `Union.__repr__` was a little dodgy...

> Are you suggesting that instead we just add something to the docs showing how jit + dispatch can work together, but also showing how this can be dangerous when...

Hey @nstarman! Generics unfortunately aren't yet supported in this way, which is why you're seeing the warning. :( Perhaps we should specialise the warning so that it says this. I...

Hey @ShalokShalom! Thanks for opening an issue. You’re absolutely right. This has been on my TODO list, so it’s about time the package is published under just `plum` too.

@nstarman, hmmm, I seem to be unable to reproduce the issue in a fresh environment with Python 3.10: ```python Python 3.10.13 (main, Jan 16 2024, 14:46:45) [Clang 14.0.0 (clang-1400.0.29.202)] Type...

Oops, I completely missed your last message, @nstarman! Glad that the issue seems to have gone away. :) Is this ready to be closed?