From 3762a2d2653c9fb24a57211972e320c732ac4588 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Tue, 20 Sep 2022 15:37:03 +0200 Subject: [PATCH] [PR #6889/a6486774 backport][3.8] Export `PrefixedSubAppResource` in `aiohttp.web` (#6921) **This is a backport of PR #6889 as merged into master (a6486774bc7f799de2b5fd51d7fc0db4e4e0c3b9).** 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: Sam Bull --- 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 0000000000..ea438993d8 --- /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 031067717d..cefae2b9ae 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, @@ -261,6 +262,7 @@ "AbstractRoute", "DynamicResource", "PlainResource", + "PrefixedSubAppResource", "Resource", "ResourceRoute", "StaticResource",