A5rocks
A5rocks
Extra thing: BaseExceptionGroup/ExceptionGroup dichotomy for subclasses (I think you need the relevant overloads for the BaseExceptionGroup subclass and multiple inheritance for ExceptionGroup? I haven't tried out the types yet)
This isn't trio-specific. I haven't tried looking more but I suspect `/bin/sh` doesn't propagate signals through pipes. ```sh alice@halimede /t/tmp.9WFtkHEbrd> cat ex2.py import subprocess import time cmd = 'while true;...
On Python 3.11+ (on Unix at least) you can do this: ```sh alice@halimede /t/tmp.9WFtkHEbrd> cat ex2.py import subprocess import time import os import signal cmd = 'while true; do\necho "h"\nsleep...
This should work, though I haven't tested it: ```py import trio import os # changed import signal # changed from subprocess import DEVNULL # cmd = 'ping localhost' cmd =...
I guess I should explain what I think the problem is. The issue is that `process.kill()` kills a process -- and processes don't have to propagate things to subprocesses. Instead,...
Would you happen to know why this only works on 3.12 and 3.14, not 3.13 or anything less than 3.12? (I'll spend some time debugging this at some point but...
Turns out it was just a race condition in the test, unless my tests locally were wrong. Guess we have to give a process some time to die? (I'd rather...
FYI I think the dataclasses plugin might work for inspiration (I think it supports subclassing?). (Also maybe check out https://docs.python.org/3/library/typing.html#typing.dataclass_transform for the spec it implements)
Turns out `dataclass_transform` is special cased in mypy, so I imagine there's no way to do this at the moment: https://github.com/python/mypy/blob/b025bda885027aa12965135e376a060d7582df06/mypy/semanal_main.py#L529-L536 I'm sure a PR to add an extra hook...
I think this regression is ultimately ok, especially since it's already done. We can update the docstring to mention this as in https://github.com/python-trio/trio/pull/3096#issuecomment-2422995153.