diff options
| author | Cody Logan <cody@lokken.dev> | 2023-11-07 12:39:48 -0800 |
|---|---|---|
| committer | Cody Logan <cody@lokken.dev> | 2023-11-07 12:39:48 -0800 |
| commit | f9db4a3a9c56c911d5084f0ff945631961f6c256 (patch) | |
| tree | 5cb37a2ec7b31bb269ba2eb0d5d30a1b7d8aefc3 /src/wikiget/file.py | |
| parent | 7099830a131b57f67be8e4d130df9dd995325609 (diff) | |
| download | wikiget-f9db4a3a9c56c911d5084f0ff945631961f6c256.tar.gz wikiget-f9db4a3a9c56c911d5084f0ff945631961f6c256.zip | |
Use type checking block for import
Diffstat (limited to 'src/wikiget/file.py')
| -rw-r--r-- | src/wikiget/file.py | 5 |
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 |
