diff options
| author | Cody Logan <cody@lokken.dev> | 2023-11-08 09:22:17 -0800 |
|---|---|---|
| committer | Cody Logan <cody@lokken.dev> | 2023-11-08 09:22:17 -0800 |
| commit | 51798a18eaa5c7b7d45ecf4a9f286db9e95fef48 (patch) | |
| tree | fb717e0cad19103f52e7f60921c5a92fa963bdeb /tests/test_validations.py | |
| parent | 088f0663e37bac29d0f5fa4f1261f1e7a211e28a (diff) | |
| download | wikiget-51798a18eaa5c7b7d45ecf4a9f286db9e95fef48.tar.gz wikiget-51798a18eaa5c7b7d45ecf4a9f286db9e95fef48.zip | |
Conditionally import modules used for type checking
Diffstat (limited to 'tests/test_validations.py')
| -rw-r--r-- | tests/test_validations.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_validations.py b/tests/test_validations.py index a8fbf1b..5263cdc 100644 --- a/tests/test_validations.py +++ b/tests/test_validations.py @@ -17,13 +17,16 @@ from __future__ import annotations -from pathlib import Path -from re import Match +from typing import TYPE_CHECKING import pytest from wikiget.validations import valid_file, valid_site, verify_hash +if TYPE_CHECKING: + from pathlib import Path + from re import Match + class TestSiteInput: @pytest.fixture( |
