diff options
| author | Cody Logan <cody@lokken.dev> | 2023-11-20 10:05:27 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-20 10:05:27 -0800 |
| commit | 2c6efe630af507f7f1b76048100f6500244151a3 (patch) | |
| tree | 8ad0ab091956a665a2d2a5471b36b1cf0f856990 /src/wikiget/file.py | |
| parent | d78f25717567870d4bb991e9bca7451f925f29ac (diff) | |
| parent | 7c5e87695f56ea3de7a04082b357998fc825e625 (diff) | |
| download | wikiget-2c6efe630af507f7f1b76048100f6500244151a3.tar.gz wikiget-2c6efe630af507f7f1b76048100f6500244151a3.zip | |
Merge pull request #15 from clpo13/reduce-api-calls
Speed up batch downloads by reducing the number of API calls
Diffstat (limited to 'src/wikiget/file.py')
| -rw-r--r-- | src/wikiget/file.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/wikiget/file.py b/src/wikiget/file.py index 36ce892..0b0c1e0 100644 --- a/src/wikiget/file.py +++ b/src/wikiget/file.py @@ -17,12 +17,16 @@ """Define a File class for representing individual files to be downloaded.""" -from pathlib import Path +from __future__ import annotations -from mwclient.image import Image +from pathlib import Path +from typing import TYPE_CHECKING from wikiget import DEFAULT_SITE +if TYPE_CHECKING: + from mwclient.image import Image + class File: """A file object.""" |
