1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 11:34:18 +00:00

🧹 Remove obsolete Adventure types

This commit is contained in:
Steffo 2021-01-03 18:00:40 +01:00
parent 8c7726f95b
commit 727ecd040a

View file

@ -31,46 +31,3 @@ JSON = Union[
A recursive JSON value: either a :data:`.JSONScalar`, or a :class:`list` of :data:`.JSON` objects, or a :class:`dict` A recursive JSON value: either a :data:`.JSONScalar`, or a :class:`list` of :data:`.JSON` objects, or a :class:`dict`
of :class:`str` to :data:`.JSON` mappings. of :class:`str` to :data:`.JSON` mappings.
""" """
Adventure = Generator[
Union[
Tuple[
Optional["Challenge"],
...
],
"Adventure",
"Challenge",
None,
],
Any,
Any,
]
"""
A generator yielding either:
* a :class:`tuple` of a :class:`.Challenge` and extra data;
* a single :class:`.Challenge`;for SQLAlchemy.
* another :data:`.Adventure`;
* :data:`None`.
"""
AsyncAdventure = AsyncGenerator[
Union[
Tuple[
Optional["AsyncChallenge"],
...
],
"AsyncAdventure",
"AsyncChallenge",
None,
],
Any,
]
"""
An async generator yielding either:
* a :class:`tuple` of an :class:`.AsyncChallenge` and extra data;
* a single :class:`.AsyncChallenge`;
* another :data:`.AsyncAdventure`;
* :data:`None`.
"""