Skip to content

Commit 1ebf96e

Browse files
committed
chg: Make mypy happy
1 parent 91fa4d0 commit 1ebf96e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyipasnhistory/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import requests
77

88
from importlib.metadata import version
9-
from typing import Dict, Any, Optional, List
9+
from typing import Any
1010
from urllib.parse import urljoin, urlparse
1111

1212
import ipaddress
@@ -87,7 +87,7 @@ def asn_meta(self, asn: int | None=None, source: str | None=None, address_family
8787
def _aggregate_details(self, details: dict) -> list:
8888
'''Aggregare the response when the asn/prefix tuple is the same over a period of time.'''
8989
to_return = []
90-
current = None
90+
current: dict[str, Any] = {}
9191
for timestamp, asn_prefix in details.items():
9292
if not current:
9393
# First loop

0 commit comments

Comments
 (0)