Skip to content

Commit eb216a5

Browse files
committed
Fix mypy ignores
1 parent c9b1c8f commit eb216a5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/galaxy/http.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ def create_tcp_connector(*args, **kwargs) -> aiohttp.TCPConnector:
7878
ssl_context.load_verify_locations(certifi.where())
7979
kwargs.setdefault("ssl", ssl_context)
8080
kwargs.setdefault("limit", DEFAULT_LIMIT)
81-
return aiohttp.TCPConnector(*args, **kwargs) # type: ignore due to https://github.com/python/mypy/issues/4001
81+
# due to https://github.com/python/mypy/issues/4001
82+
return aiohttp.TCPConnector(*args, **kwargs) # type: ignore
8283

8384

8485
def create_client_session(*args, **kwargs) -> aiohttp.ClientSession:
@@ -103,7 +104,8 @@ def create_client_session(*args, **kwargs) -> aiohttp.ClientSession:
103104
kwargs.setdefault("connector", create_tcp_connector())
104105
kwargs.setdefault("timeout", aiohttp.ClientTimeout(total=DEFAULT_TIMEOUT))
105106
kwargs.setdefault("raise_for_status", True)
106-
return aiohttp.ClientSession(*args, **kwargs) # type: ignore due to https://github.com/python/mypy/issues/4001
107+
# due to https://github.com/python/mypy/issues/4001
108+
return aiohttp.ClientSession(*args, **kwargs) # type: ignore
107109

108110

109111
@contextmanager

0 commit comments

Comments
 (0)