From 088f0663e37bac29d0f5fa4f1261f1e7a211e28a Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Wed, 8 Nov 2023 09:16:57 -0800 Subject: Revise type annotations per PEP 604 --- src/wikiget/parse.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/wikiget/parse.py') diff --git a/src/wikiget/parse.py b/src/wikiget/parse.py index abe1419..99cb01c 100644 --- a/src/wikiget/parse.py +++ b/src/wikiget/parse.py @@ -15,10 +15,11 @@ # You should have received a copy of the GNU General Public License # along with Wikiget. If not, see . +from __future__ import annotations + import fileinput import logging from argparse import Namespace -from typing import Dict from urllib.parse import unquote, urlparse import wikiget @@ -59,7 +60,7 @@ def get_dest(dl: str, args: Namespace) -> File: return File(filename, dest, site_name) -def read_batch_file(batch_file: str) -> Dict[int, str]: +def read_batch_file(batch_file: str) -> dict[int, str]: dl_dict = {} if batch_file == "-": -- cgit v1.2.3