Skip to content

Commit

Permalink
Fix mypy 'unused comment' (aio-libs#3927)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Aug 13, 2019
1 parent 158f694 commit ea60565
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aiohttp/client_reqrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def update_cookies(self, cookies: Optional[LooseCookies]) -> None:
if isinstance(value, Morsel):
# Preserve coded_value
mrsl_val = value.get(value.key, Morsel())
mrsl_val.set(value.key, value.value, value.coded_value) # type: ignore # noqa
mrsl_val.set(value.key, value.value, value.coded_value) # noqa
c[name] = mrsl_val
else:
c[name] = value # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion aiohttp/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def rfc822_formatted_time() -> str:
_weekdayname[wd], day, _monthname[month], year, hh, mm, ss
)
_cached_current_datetime = now
return _cached_formatted_datetime # type: ignore
return _cached_formatted_datetime


def _weakref_handle(info): # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion aiohttp/http_websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class WSMsgType(IntEnum):

class WSMessage(_WSMessageBase):

def json(self, *, # type: ignore
def json(self, *,
loads: Callable[[Any], Any]=json.loads) -> Any:
"""Return parsed JSON data.
Expand Down

0 comments on commit ea60565

Please sign in to comment.