You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oh, and let's not forget about the very important Task!
goodboy
changed the title
Better expose Nursery, CancelScope and TaskStatus for type annotations
Better expose Nursery, CancelScope, Task and TaskStatus for type annotations
Nov 27, 2018
oremanj
changed the title
Better expose Nursery, CancelScope, Task and TaskStatus for type annotations
Better expose Nursery and TaskStatus for type annotations
May 1, 2019
Task is already public as trio.hazmat.Task -- how were you envisioning it getting more public?
For now I recommend using the Nursery and TaskStatus exposures in trio-typing. When we bring the type hints into Trio proper (#543), I imagine a resolution to this issue will go along with it. I'm going to close this for now, but leave a pointer at #543.
As per some gitter banter we should more publicly expose the
Nursery
,CancelScope
andTaskstatus
types for use as type annotations.Currently client code is stuck importing most of these from internal private modules which leads the following beauty:
Worth noting:
CancelScope
may already be exposed soon via idea: unbound cancel scopes #607The text was updated successfully, but these errors were encountered: