diff --git a/tests/sherlock_interactives.py b/tests/sherlock_interactives.py index 0e7124ce..a05440b9 100644 --- a/tests/sherlock_interactives.py +++ b/tests/sherlock_interactives.py @@ -13,7 +13,8 @@ class Interactives: except subprocess.CalledProcessError as e: raise InteractivesSubprocessError(e.output.decode()) - def walk_sherlock_for_files_with(pattern: str) -> list[str]: + # -> list[str] is prefered, but will require deprecation of support for Python 3.8 + def walk_sherlock_for_files_with(pattern: str) -> list: """Check all files within the Sherlock package for matching patterns""" pattern: re.Pattern = re.compile(pattern) matching_files: list[str] = [] diff --git a/tests/test_ux.py b/tests/test_ux.py index b7814824..c14035f5 100644 --- a/tests/test_ux.py +++ b/tests/test_ux.py @@ -1,5 +1,4 @@ import pytest -import subprocess from sherlock import sherlock from sherlock_interactives import Interactives from sherlock_interactives import InteractivesSubprocessError