From 50946d5d889165af4243f78f6c977fbfbe9b6c64 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 (cherry picked from commit a6486774bc7f799de2b5fd51d7fc0db4e4e0c3b9) --- 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 d404db243a2..0bf1edbdd70 100644 --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -136,6 +136,7 @@ AbstractRoute as AbstractRoute, DynamicResource as DynamicResource, PlainResource as PlainResource, + PrefixedSubAppResource as PrefixedSubAppResource, Resource as Resource, ResourceRoute as ResourceRoute, StaticResource as StaticResource, @@ -262,6 +263,7 @@ "AbstractRoute", "DynamicResource", "PlainResource", + "PrefixedSubAppResource", "Resource", "ResourceRoute", "StaticResource",