Skip to content

Commit

Permalink
mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Dec 29, 2024
1 parent 4b911cd commit d5f4177
Show file tree
Hide file tree
Showing 3 changed files with 396 additions and 409 deletions.
4 changes: 2 additions & 2 deletions aiomisc/service/raven.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class AioHttpTransportBase(
def __init__(
self, parsed_url: Optional[str] = None, *, verify_ssl: bool = True,
timeout: TimeoutType = defaults.TIMEOUT, keepalive: bool = True,
family: int = socket.AF_INET,
family: socket.AddressFamily = socket.AddressFamily.AF_INET,
):
self._keepalive = keepalive
self._family = family
Expand All @@ -92,7 +92,7 @@ def keepalive(self) -> bool:
return self._keepalive

@property
def family(self) -> int:
def family(self) -> socket.AddressFamily:
return self._family

def _client_session_factory(self) -> aiohttp.ClientSession:
Expand Down
Loading

0 comments on commit d5f4177

Please sign in to comment.