Stubtest: fixes for py312beta4 (#10449)

* Revert "json: add AttrDict in py312 (#10212)"

This reverts commit 7994f165da.

* TaskGroup updates
This commit is contained in:
Alex Waygood
2023-07-12 21:21:05 +01:00
committed by GitHub
parent f843922df8
commit f2ee9e9368
2 changed files with 5 additions and 12 deletions

View File

@@ -1,5 +1,4 @@
# This only exists in 3.11+. See VERSIONS.
import sys
from contextvars import Context
from types import TracebackType
from typing import TypeVar
@@ -8,7 +7,10 @@ from typing_extensions import Self
from . import _CoroutineLike
from .tasks import Task
__all__ = ["TaskGroup"]
if sys.version_info >= (3, 12):
__all__ = ("TaskGroup",)
else:
__all__ = ["TaskGroup"]
_T = TypeVar("_T")