Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
WLM1ke committed Aug 26, 2024
1 parent 60ee0e7 commit 479ee38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions poptimizer/adapter/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import ssl
from collections.abc import Awaitable, Callable, Iterable, Mapping
from datetime import timedelta
from types import SimpleNamespace
from typing import Any, Final, override

import aiohttp
Expand Down Expand Up @@ -58,14 +57,14 @@ async def _request(
read_until_eof: bool = True,
proxy: typedefs.StrOrURL | None = None,
proxy_auth: helpers.BasicAuth | None = None,
timeout: aiohttp.ClientTimeout | helpers._SENTINEL = helpers.sentinel, # type: ignore[reportPrivateUsage]
timeout: aiohttp.ClientTimeout | helpers._SENTINEL = helpers.sentinel, # type: ignore[reportPrivateUsage] # noqa: ASYNC109
verify_ssl: bool | None = None,
fingerprint: bytes | None = None,
ssl_context: ssl.SSLContext | None = None,
ssl: ssl.SSLContext | bool | client_reqrep.Fingerprint = True,
server_hostname: str | None = None,
proxy_headers: typedefs.LooseHeaders | None = None,
trace_request_ctx: SimpleNamespace | None = None,
trace_request_ctx: Mapping[str, str] | None = None,
read_bufsize: int | None = None,
auto_decompress: bool | None = None,
max_line_size: int | None = None,
Expand Down
4 changes: 2 additions & 2 deletions poptimizer/domain/service/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def close(
) -> pd.DataFrame:
quotes_dfs = await self._quotes(last_day, tickers)
close = pd.concat( # type: ignore[reportUnknownMemberType]
[quote["close"] for quote in quotes_dfs],
[quote["close"] for quote in quotes_dfs], # type: ignore[PGH003]
axis=1,
sort=True,
)
Expand All @@ -62,7 +62,7 @@ async def turnover(
) -> pd.DataFrame:
quotes_dfs = await self._quotes(last_day, tickers)
turnover = pd.concat( # type: ignore[reportUnknownMemberType]
[quote["turnover"] for quote in quotes_dfs],
[quote["turnover"] for quote in quotes_dfs], # type: ignore[PGH003]
axis=1,
sort=True,
)
Expand Down

0 comments on commit 479ee38

Please sign in to comment.