docs: hide typevar definitions

This commit is contained in:
Mike A.
2025-08-05 15:08:56 +02:00
parent 4f450882b8
commit e2978b66a0
3 changed files with 12 additions and 12 deletions

View File

@@ -3,8 +3,8 @@
from collections.abc import Coroutine
from typing import TypeVar, Union
T = TypeVar("T")
_T = TypeVar("_T")
# Cannot use `|` operator (PEP 604) in python 3.9,
# even with __future__ import since it is evaluated directly
MaybeCoro = Union[T, Coroutine[None, None, T]]
MaybeCoro = Union[_T, Coroutine[None, None, _T]]