Closed
Description
🐣 Is your feature request related to a problem? Please describe.
I'm unclear what the best way currently is to make use of type annotations in my own aiohttp projects.
💡 Describe the solution you'd like
One of the aiohttp-demos to be updated with full type hinting to serve as an example.
❓ Describe alternatives you've considered
The only way I can see at the moment, is with importing protected objects from various modules.
e.g. from aiohttp.web_app import _Handler
though this is also in aiohttp.web_urldispatcher._WebHandler
Types to add:
- Handler
- Middleware
- CleanupContext (Cleanup Context type alias #5883 (comment))