Compare commits

..

No commits in common. "aca015f1c23b706a880f0a1b96582bdbba2350c7" and "1e8672235754c27bf20dd7fe840b9a6edcc3f1f5" have entirely different histories.

2 changed files with 2 additions and 12 deletions

View File

@ -67,4 +67,4 @@ from ._root import (
from ._ipc import Channel as Channel
from ._portal import Portal as Portal
from ._runtime import Actor as Actor
# from . import hilevel as hilevel
from . import hilevel as hilevel

View File

@ -47,9 +47,6 @@ from functools import partial
import inspect
from pprint import pformat
import textwrap
from types import (
UnionType,
)
from typing import (
Any,
AsyncGenerator,
@ -2551,14 +2548,7 @@ def context(
name: str
param: Type
for name, param in annots.items():
if (
param is Context
or (
isinstance(param, UnionType)
and
Context in param.__args__
)
):
if param is Context:
ctx_var_name: str = name
break
else: