Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/smpclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@

"""

from __future__ import annotations

import asyncio
import itertools
import logging
Expand All @@ -60,8 +62,6 @@

if TYPE_CHECKING:
from types_bits import u8
else: # `types_bits` is typing-only; reaching its values at runtime needs its `rt` extra
u8 = int

try:
from asyncio import timeout # type: ignore
Expand Down Expand Up @@ -143,7 +143,7 @@ def success(

def wrapping_sequence() -> Iterator[u8]:
"""The default SMP sequence space: `0x00`-`0xFF`, wrapping."""
return cast(Iterator[u8], itertools.cycle(range(0x100)))
return cast("Iterator[u8]", itertools.cycle(range(0x100)))


def _hexdump(frame: bytes) -> str:
Expand Down
Loading