Skip to content

Commit

Permalink
chore(pre-commit.ci): pre-commit autoupdate (#46)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jan 29, 2024
1 parent 61d17a7 commit 9027e11
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ repos:
- id: prettier
args: ["--tab-width", "2"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.11
rev: v0.1.14
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/codespell-project/codespell
Expand Down
7 changes: 4 additions & 3 deletions src/aiohappyeyeballs/impl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Base implementation."""

import asyncio
import collections
import functools
Expand Down Expand Up @@ -163,9 +164,9 @@ def _interleave_addrinfos(
) -> List[AddrInfoType]:
"""Interleave list of addrinfo tuples by family."""
# Group addresses by family
addrinfos_by_family: collections.OrderedDict[
int, List[AddrInfoType]
] = collections.OrderedDict()
addrinfos_by_family: collections.OrderedDict[int, List[AddrInfoType]] = (
collections.OrderedDict()
)
for addr in addrinfos:
family = addr[0]
if family not in addrinfos_by_family:
Expand Down
1 change: 1 addition & 0 deletions src/aiohappyeyeballs/types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Types for aiohappyeyeballs."""

import socket
from typing import Tuple, Union

Expand Down

0 comments on commit 9027e11

Please sign in to comment.