aboutsummaryrefslogtreecommitdiff
path: root/src/wikiget/parse.py
diff options
context:
space:
mode:
authorCody Logan <cody@lokken.dev>2023-11-08 09:16:57 -0800
committerCody Logan <cody@lokken.dev>2023-11-08 09:16:57 -0800
commit088f0663e37bac29d0f5fa4f1261f1e7a211e28a (patch)
treefc2ac1f4480d404e91be6edbecedfa4a5f409194 /src/wikiget/parse.py
parent2e6f78062ed2e6c5a1767841874a009051d94ce4 (diff)
downloadwikiget-088f0663e37bac29d0f5fa4f1261f1e7a211e28a.tar.gz
wikiget-088f0663e37bac29d0f5fa4f1261f1e7a211e28a.zip
Revise type annotations per PEP 604
Diffstat (limited to 'src/wikiget/parse.py')
-rw-r--r--src/wikiget/parse.py5
1 files changed, 3 insertions, 2 deletions
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 <https://www.gnu.org/licenses/>.
+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 == "-":