Skip to content

Commit b3aef9b

Browse files
authored
Merge pull request #531 from JohnVillalovos/jlvillal/mypy_util
chore: rename type-var to lessen possible confusion
2 parents d26e60e + a50036f commit b3aef9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

imapclient/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ def assert_imap_protocol(condition: bool, message: Optional[bytes] = None) -> No
4141
raise exceptions.ProtocolError(msg)
4242

4343

44-
_AtomPart = Tuple[Union[None, int, bytes], ...]
45-
_Atom = Tuple[Union[_AtomPart, "_Atom"], ...]
44+
_TupleAtomPart = Union[None, int, bytes]
45+
_TupleAtom = Tuple[Union[_TupleAtomPart, "_TupleAtom"], ...]
4646

4747

48-
def chunk(lst: _Atom, size: int) -> Iterator[_Atom]:
48+
def chunk(lst: _TupleAtom, size: int) -> Iterator[_TupleAtom]:
4949
for i in range(0, len(lst), size):
5050
yield lst[i : i + size]

0 commit comments

Comments
 (0)