Skip to content

Commit

Permalink
Indent properly
Browse files Browse the repository at this point in the history
  • Loading branch information
mprasil authored Nov 23, 2023
1 parent 2eb92fc commit f7dab3b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/aiohttp_middlewares/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@
from yarl import URL

try:
# (<3.9.0) Try to import Middleware from aiohttp.web_middlewares
Middleware = importlib.import_module('aiohttp.web_middlewares')._Middleware
# (<3.9.0) Try to import Middleware from aiohttp.web_middlewares
Middleware = importlib.import_module('aiohttp.web_middlewares')._Middleware
except AttributeError:
# (>=3.9.0) If that fails, import Middleware from aiohttp.typedefs
Middleware = importlib.import_module('aiohttp.typedefs').Middleware

# (>=3.9.0) If that fails, import Middleware from aiohttp.typedefs
Middleware = importlib.import_module('aiohttp.typedefs').Middleware

# Make flake8 happy
(Middleware,)
Expand Down

0 comments on commit f7dab3b

Please sign in to comment.