Skip to content

Commit 4b4fa4c

Browse files
committed
Add missing __iter__ type hint
1 parent 64a4ba2 commit 4b4fa4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

maxminddb/extension.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""C extension database reader and related classes."""
22

3-
from ipaddress import IPv4Address, IPv6Address
3+
from collections.abc import Iterator
4+
from ipaddress import IPv4Address, IPv4Network, IPv6Address, IPv6Network
45
from os import PathLike
56
from typing import IO, Any, AnyStr
67

@@ -56,6 +57,7 @@ class Reader:
5657
def metadata(self) -> Metadata:
5758
"""Return the metadata associated with the MaxMind DB file."""
5859

60+
def __iter__(self) -> Iterator[tuple[IPv4Network | IPv6Network, Record]]: ...
5961
def __enter__(self) -> Self: ...
6062
def __exit__(self, *args) -> None: ... # noqa: ANN002
6163

0 commit comments

Comments
 (0)