Skip to content

Commit

Permalink
Export PrefixedSubAppResource in aiohttp.web (#6889)
Browse files Browse the repository at this point in the history
To match the documentation:
https://docs.aiohttp.org/en/stable/web_reference.html#aiohttp.web.PrefixedSubAppResource

It's missing since this PR got merged:
#3469.

Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com>
(cherry picked from commit a648677)
  • Loading branch information
Dreamsorcerer authored and patchback[bot] committed Sep 20, 2022
1 parent 7cd8a60 commit 50946d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 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`.
2 changes: 2 additions & 0 deletions aiohttp/web.py
Expand Up @@ -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,
Expand Down Expand Up @@ -262,6 +263,7 @@
"AbstractRoute",
"DynamicResource",
"PlainResource",
"PrefixedSubAppResource",
"Resource",
"ResourceRoute",
"StaticResource",
Expand Down

0 comments on commit 50946d5

Please sign in to comment.