Skip to content

Commit

Permalink
chg: Make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Feb 5, 2025
1 parent 91fa4d0 commit 1ebf96e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyipasnhistory/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import requests

from importlib.metadata import version
from typing import Dict, Any, Optional, List
from typing import Any
from urllib.parse import urljoin, urlparse

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

0 comments on commit 1ebf96e

Please sign in to comment.