Skip to content

Commit

Permalink
Fix mypy errors. It does not respect ignore when multilined
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nameless committed Nov 27, 2024
1 parent 61c4c47 commit 399fd43
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests/test_get_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,8 @@ async def test_get_new_session() -> None:
session = Session("identity", data=None, new=False)

class Storage(AbstractStorage):
async def load_session(
self,
request: web.Request,
) -> Session:
async def load_session(self, request: web.Request) -> Session: # type: ignore[empty-body] # noqa: E501
"""Dummy"""
return Session("", data=None, new=True)

async def save_session(
self, request: web.Request, response: web.StreamResponse, session: Session
Expand Down Expand Up @@ -81,12 +77,8 @@ class Storage(AbstractStorage):
async def new_session(self) -> Session:
return "" # type: ignore[return-value]

async def load_session(
self,
request: web.Request,
) -> Session:
async def load_session(self, request: web.Request) -> Session: # type: ignore[empty-body] # noqa: E501
"""Dummy"""
return Session("", data=None, new=True)

async def save_session(
self, request: web.Request, response: web.StreamResponse, session: Session
Expand Down

0 comments on commit 399fd43

Please sign in to comment.