Skip to content

Commit 6115a39

Browse files
committed
[qa] fix some type annotations
1 parent 61ef51f commit 6115a39

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/aioquic/quic/logger.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os
44
import time
55
from collections import deque
6-
from typing import Any, Deque, Dict, List, Optional, Tuple
6+
from typing import Any, Deque, Dict, List, Optional
77

88
from ..h3.events import Headers
99
from .packet import (
@@ -47,7 +47,7 @@ class QuicLoggerTrace:
4747

4848
def __init__(self, *, is_client: bool, odcid: bytes) -> None:
4949
self._odcid = odcid
50-
self._events: Deque[Tuple[float, str, str, Dict[str, Any]]] = deque()
50+
self._events: Deque[Dict[str, Any]] = deque()
5151
self._vantage_point = {
5252
"name": "aioquic",
5353
"type": "client" if is_client else "server",

src/aioquic/quic/recovery.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import math
2-
from typing import Callable, Dict, Iterable, List, Optional
2+
from typing import Any, Callable, Dict, Iterable, List, Optional
33

44
from .logger import QuicLoggerTrace
55
from .packet_builder import QuicDeliveryState, QuicSentPacket
@@ -386,7 +386,7 @@ def _get_loss_space(self) -> Optional[QuicPacketSpace]:
386386
return loss_space
387387

388388
def _log_metrics_updated(self, log_rtt=False) -> None:
389-
data = {
389+
data: Dict[str, Any] = {
390390
"bytes_in_flight": self._cc.bytes_in_flight,
391391
"cwnd": self._cc.congestion_window,
392392
}

0 commit comments

Comments
 (0)