From 4bc798b51d00d0d0172456d9ffc7e24f3f07f99a Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Tue, 20 Sep 2022 15:37:13 +0200 Subject: [PATCH] [PR #6889/a6486774 backport][3.9] Export `PrefixedSubAppResource` in `aiohttp.web` (#6922) **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 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",