Skip to content

Commit

Permalink
Another shot at fixing Sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
A5rocks authored Oct 19, 2023
1 parent 2773fd4 commit ddc8ca9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ def autodoc_process_signature(
"""Modify found signatures to fix various issues."""
if signature is not None:
signature = signature.replace("~_contextvars.Context", "~contextvars.Context")
if name == "trio.lowlevel.start_guest_run":
signature = signature.replace("Outcome", "~outcome.Outcome")
if name == "trio.lowlevel.RunVar": # Typevar is not useful here.
signature = signature.replace(": ~trio._core._local.T", "")
if "_NoValue" in signature:
Expand Down
5 changes: 2 additions & 3 deletions trio/_core/_traps.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from . import _run

if TYPE_CHECKING:
from outcome import Outcome
from typing_extensions import TypeAlias

from ._run import Task
Expand Down Expand Up @@ -182,10 +181,10 @@ def abort(inner_raise_cancel):
# Not exported in the trio._core namespace, but imported directly by _run.
@attr.s(frozen=True)
class PermanentlyDetachCoroutineObject:
final_outcome: Outcome[Any] = attr.ib()
final_outcome: outcome.Outcome[Any] = attr.ib()


async def permanently_detach_coroutine_object(final_outcome: Outcome[Any]) -> Any:
async def permanently_detach_coroutine_object(final_outcome: outcome.Outcome[Any]) -> Any:
"""Permanently detach the current task from the Trio scheduler.
Normally, a Trio task doesn't exit until its coroutine object exits. When
Expand Down

0 comments on commit ddc8ca9

Please sign in to comment.