trio
trio copied to clipboard
RunVar exposure not flexible enough
RunVar[T].get(U) should return Union[T, U], not an error. Look at ContextVar for inspiration.
~~Do you mind if this issue gets transferred over to the trio repository now that that has inline type hints?~~
I'll just do it, feel free to transfer this back if I shouldn't have.