From 727ecd040ae5720e8ce3ef10036d5d39c9d38f20 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 3 Jan 2021 18:00:40 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Remove=20obsolete=20Adventure=20?= =?UTF-8?q?types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- royalnet/royaltyping/__init__.py | 43 -------------------------------- 1 file changed, 43 deletions(-) diff --git a/royalnet/royaltyping/__init__.py b/royalnet/royaltyping/__init__.py index 4372f887..554710dc 100644 --- a/royalnet/royaltyping/__init__.py +++ b/royalnet/royaltyping/__init__.py @@ -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` 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`. -"""