Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RunVar exposure not flexible enough #2858

Open
oremanj opened this issue Jan 7, 2020 · 1 comment
Open

RunVar exposure not flexible enough #2858

oremanj opened this issue Jan 7, 2020 · 1 comment
Labels
typing Adding static types to trio's interface

Comments

@oremanj
Copy link
Member

oremanj commented Jan 7, 2020

RunVar[T].get(U) should return Union[T, U], not an error. Look at ContextVar for inspiration.

@A5rocks
Copy link
Contributor

A5rocks commented Nov 4, 2023

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.

@A5rocks A5rocks transferred this issue from python-trio/trio-typing Nov 4, 2023
@A5rocks A5rocks added the typing Adding static types to trio's interface label Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typing Adding static types to trio's interface
Projects
None yet
Development

No branches or pull requests

2 participants