Skip to content

Commit

Permalink
Remove typing.Dict, .Tuple with dict, tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
bessman committed Dec 22, 2024
1 parent 2115eff commit 1e90329
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pytest_reserial/reserial.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
import json
from enum import IntEnum
from pathlib import Path
from typing import Callable, Dict, Iterator, Literal, Tuple
from typing import Callable, Iterator, Literal

import pytest
from serial import PortNotOpenError, Serial # type: ignore[import-untyped]

TrafficLog = Dict[Literal["rx", "tx"], bytes]
PatchMethods = Tuple[
TrafficLog = dict[Literal["rx", "tx"], bytes]
PatchMethods = tuple[
Callable[[Serial, int], bytes], # read
Callable[[Serial, bytes], int], # write
Callable[[Serial], None], # open
Expand Down

0 comments on commit 1e90329

Please sign in to comment.