aboutsummaryrefslogtreecommitdiff
path: root/src/wikiget
diff options
context:
space:
mode:
authorCody Logan <cody@lokken.dev>2023-11-07 12:39:48 -0800
committerCody Logan <cody@lokken.dev>2023-11-07 12:39:48 -0800
commitf9db4a3a9c56c911d5084f0ff945631961f6c256 (patch)
tree5cb37a2ec7b31bb269ba2eb0d5d30a1b7d8aefc3 /src/wikiget
parent7099830a131b57f67be8e4d130df9dd995325609 (diff)
downloadwikiget-f9db4a3a9c56c911d5084f0ff945631961f6c256.tar.gz
wikiget-f9db4a3a9c56c911d5084f0ff945631961f6c256.zip
Use type checking block for import
Diffstat (limited to 'src/wikiget')
-rw-r--r--src/wikiget/file.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wikiget/file.py b/src/wikiget/file.py
index e2599c5..38d41c3 100644
--- a/src/wikiget/file.py
+++ b/src/wikiget/file.py
@@ -15,7 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with Wikiget. If not, see <https://www.gnu.org/licenses/>.
-from mwclient.image import Image
+from typing import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from mwclient.image import Image
from wikiget import DEFAULT_SITE