Closed Redoubts closed 8 months ago
I'm playing with 0.8.0, and I noticed that trio.open_signal_receiver gives me an AsyncIterator[int], but trio.Process.send_signal takes Signals. Ideally I'd be able to pass one into the other without a cast or type-ignore.
trio.open_signal_receiver
AsyncIterator[int]
trio.Process.send_signal
Signal
I believe this is fixed in trio's new inline type hints? trio.Process.send_signal takes int | Signals so you should be able to pass in ints.
trio
int | Signal
int
I'm playing with 0.8.0, and I noticed that
trio.open_signal_receiver
gives me anAsyncIterator[int]
, buttrio.Process.send_signal
takesSignal
s. Ideally I'd be able to pass one into the other without a cast or type-ignore.