Skip to content

Commit

Permalink
Fix some typing issues (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
CorralPeltzer authored Jul 6, 2024
1 parent f32afd9 commit 1652d5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion newTrackon/persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from collections import deque
import json

submitted_trackers = deque(maxlen=10000)
submitted_trackers: deque = deque(maxlen=10000)
raw_history_file = "data/raw_data.json"
submitted_history_file = "data/submitted_data.json"

Expand Down
1 change: 1 addition & 0 deletions newTrackon/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def format_time(last_time):


def remove_ipvx_only_trackers(raw_list: list[tuple[str, list[str]]], version: int):
ip_type_to_keep: type[IPv4Address | IPv6Address]
if version == 6:
ip_type_to_keep = IPv4Address
else:
Expand Down

0 comments on commit 1652d5f

Please sign in to comment.