From 961c741f667dcba07f76e46fed6228d88734cec7 Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Tue, 4 Feb 2020 08:48:28 -0800 Subject: [PATCH] remove "typing.FOO" and import foo According to grep, they were the only two instances --- pylib/anki/exporting.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pylib/anki/exporting.py b/pylib/anki/exporting.py index d5a09ebb8..84196f5c5 100644 --- a/pylib/anki/exporting.py +++ b/pylib/anki/exporting.py @@ -5,11 +5,10 @@ import json import os import re import shutil -import typing import unicodedata import zipfile from io import BufferedWriter -from typing import Any, Dict, List, Tuple +from typing import Any, Dict, List, Tuple, Union from zipfile import ZipFile from anki import hooks @@ -20,7 +19,7 @@ from anki.utils import ids2str, namedtmp, splitFields, stripHTML class Exporter: - includeHTML: typing.Union[bool, None] = None + includeHTML: Union[bool, None] = None def __init__(self, col: _Collection, did: None = None) -> None: self.col = col @@ -154,7 +153,7 @@ class AnkiExporter(Exporter): key = _("Anki 2.0 Deck") ext = ".anki2" - includeSched: typing.Union[bool, None] = False + includeSched: Union[bool, None] = False includeMedia = True def __init__(self, col: _Collection) -> None: