diff --git a/src/platformdirs/android.py b/src/platformdirs/android.py index 7004a85..92efc85 100644 --- a/src/platformdirs/android.py +++ b/src/platformdirs/android.py @@ -23,7 +23,7 @@ class Android(PlatformDirsABC): @property def user_data_dir(self) -> str: """:return: data directory tied to the user, e.g. ``/data/user///files/``""" - return self._append_app_name_and_version(cast(str, _android_folder()), "files") + return self._append_app_name_and_version(cast("str", _android_folder()), "files") @property def site_data_dir(self) -> str: @@ -36,7 +36,7 @@ def user_config_dir(self) -> str: :return: config directory tied to the user, e.g. \ ``/data/user///shared_prefs/`` """ - return self._append_app_name_and_version(cast(str, _android_folder()), "shared_prefs") + return self._append_app_name_and_version(cast("str", _android_folder()), "shared_prefs") @property def site_config_dir(self) -> str: @@ -46,7 +46,7 @@ def site_config_dir(self) -> str: @property def user_cache_dir(self) -> str: """:return: cache directory tied to the user, e.g.,``/data/user///cache/``""" - return self._append_app_name_and_version(cast(str, _android_folder()), "cache") + return self._append_app_name_and_version(cast("str", _android_folder()), "cache") @property def site_cache_dir(self) -> str: diff --git a/tests/conftest.py b/tests/conftest.py index 3846ea2..bc20b00 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -28,12 +28,12 @@ @pytest.fixture(params=PROPS) def func(request: SubRequest) -> str: - return cast(str, request.param) + return cast("str", request.param) @pytest.fixture(params=PROPS) def func_path(request: SubRequest) -> str: - prop = cast(str, request.param) + prop = cast("str", request.param) return prop.replace("_dir", "_path")