Zac Hatfield-Dodds
Zac Hatfield-Dodds
It looks like this isn't an error _in Hypothesis_ per se, but rather an error in `ast.parse()` when Pytest's assertion-rewriting logic is applied to some of Hypothesis' source code. Which...
Even better: [applying Black to this code](https://black.now.sh/?version=stable&state=_Td6WFoAAATm1rRGAgAhARYAAAB0L-Wj4AB-AFNdAD2IimZxl1N_Wlws4SR2T8ZZRaG8tkHBLNqoPH_V-74_p8SIgA9LZgFChqrp1SLr4SrjKvkg97bRtbtP5OGleKFAKHQhJT7_ZRwXGH6K4452cYq7AADdyRRZeukX4wABb3_urlkCH7bzfQEAAAAABFla) ```python if ( # pre (1 == 2) # post ): ... ``` removes the inner parens, which then inserts the linebreak above....
@ilevkivskyi any update on this? I would really, really like Trio and AnyIO to give precise types for their `.start()` methods - currently that would work with everything _except_ mypy....
I'm sorry Ivan; clearly I've miscommunicated pretty badly. This issue is indeed pretty important to Trio, e.g. it's [the last thing keeping our stubs package alive](https://github.com/python-trio/trio-typing/issues/75#issuecomment-2189532972) and that's all I...
I'm somewhat inclined against setting `__context__`, because it's so easy for this to be lost/overwritten as exceptions are caught and re-raised. An example usecase here is "I have dozens of...
I'm now thinking of having three attributes `source: Literal["deadline", "nursery", "explicit"]`, `source_task: str`, and `reason: str | None`; I also tend to stick to `Literal` over enums these days. Storing...
> There are also use cases that rely on the GC so object finalizers get fired (including one of my own apps). This is not strictly speaking supported behavior for...
It's not so much a timeline, as that I've been reserving the ability to make small changes to the format if that would help other PBT frameworks to adopt it....
FWIW I now personally consider the format stable; it's increasingly widely used and we haven't seen any problems so far.
(We support closure on `as_safe_channel` because it's a standard part of the Channel interface, and interop is useful.) ------------ Without subclassing, how can I make `async_map(fn, recv_chan)` return a `MemoryReceiveChannel`...