okumy/aiohttp-tus

aiohttp moved _Handler to typedefs.Handler

Opened this issue · 0 comments

from aiohttp.web_middlewares import _Handler as Handler

Just noticed this today:

ImportError: cannot import name '_Handler' from 'aiohttp.web_middlewares' (/usr/local/lib/python3.8/dist-packages/aiohttp/web_middlewares.py)

I poked around in the aiohttp commit history and saw this one: aio-libs/aiohttp@1b45c73#diff-b756d284fe20863e4e6a5fdfa7a6f460e7f0699f4b3d658f5049be5ee821ab31

It looks like aiohttp.web_middlewares._Handler may have moved to aiohttp.typedefs.Handler