From a6486774bc7f799de2b5fd51d7fc0db4e4e0c3b9 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Tue, 20 Sep 2022 14:36:21 +0100 Subject: [PATCH] Export `PrefixedSubAppResource` in `aiohttp.web` (#6889) To match the documentation: https://docs.aiohttp.org/en/stable/web_reference.html#aiohttp.web.PrefixedSubAppResource It's missing since this PR got merged: https://github.com/aio-libs/aiohttp/pull/3469. Co-authored-by: Sviatoslav Sydorenko --- CHANGES/6889.bugfix | 4 ++++ aiohttp/web.py | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 CHANGES/6889.bugfix diff --git a/CHANGES/6889.bugfix b/CHANGES/6889.bugfix new file mode 100644 index 00000000000..ea438993d84 --- /dev/null +++ b/CHANGES/6889.bugfix @@ -0,0 +1,4 @@ +Export :py:class:`~aiohttp.web.PrefixedSubAppResource` under +:py:mod:`aiohttp.web` -- by :user:`Dreamsorcerer`. + +This fixes a regression introduced by :pr:`3469`. diff --git a/aiohttp/web.py b/aiohttp/web.py index e771a61591c..0b465375659 100644 --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -137,6 +137,7 @@ AbstractRoute as AbstractRoute, DynamicResource as DynamicResource, PlainResource as PlainResource, + PrefixedSubAppResource as PrefixedSubAppResource, Resource as Resource, ResourceRoute as ResourceRoute, StaticResource as StaticResource, @@ -263,6 +264,7 @@ "AbstractRoute", "DynamicResource", "PlainResource", + "PrefixedSubAppResource", "Resource", "ResourceRoute", "StaticResource",