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 ._ipc import Channel as Channel
from ._portal import Portal as Portal from ._portal import Portal as Portal
from ._runtime import Actor as Actor 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 import inspect
from pprint import pformat from pprint import pformat
import textwrap import textwrap
from types import (
UnionType,
)
from typing import ( from typing import (
Any, Any,
AsyncGenerator, AsyncGenerator,
@ -2551,14 +2548,7 @@ def context(
name: str name: str
param: Type param: Type
for name, param in annots.items(): for name, param in annots.items():
if ( if param is Context:
param is Context
or (
isinstance(param, UnionType)
and
Context in param.__args__
)
):
ctx_var_name: str = name ctx_var_name: str = name
break break
else: else: