Itamar Turner-Trauring

Results 417 comments of Itamar Turner-Trauring

Assuming this is still a problem, would calling `backtrace::clear_symbol_cache()` after every `dlopen()` be an effective workaround?

So I tried this, and... benchmark diffs are all over the place, and in enough places that I suspect it's just noise :cry: So I can't really tell if it...

Ah, right. Anyway as I said, this isn't actually something I _need_, but it seems useful. And it might speed up builds? So seems like a nice to have at...

Ah, probably need to do a similar thing where we remove the `Coroutine` wrapper which is being added erroneously. Can you give me a small reproducer that mypy complains about?

Thanks for the reproducer! `@wait_for` stub will not need to change, cause the return function deliberately does _not_ return coroutines, those get wrapped into a blocking call. Just need to...

Oh actually I'm probably wrong and it does need to change the typing stub, I forget it's a thing that _returns_ a decorator.

... but unfortunately that won't work due to https://github.com/python/typing/issues/256, so probably will need to extend the plugin.

Happy to accept a PR, I don't have a lot of time to spend on writing this myself.

https://gist.github.com/graingert/306af28f3c1038cf24342be5a69dcd02#file-main-py-L77-L79 is example. When using Daphne, that won't work, but can use Crochet with no_setup() probably?