Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 16, 2024
1 parent f2191c7 commit 62713e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/platformdirs/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/<userid>/<packagename>/files/<AppName>``"""
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:
Expand All @@ -36,7 +36,7 @@ def user_config_dir(self) -> str:
:return: config directory tied to the user, e.g. \
``/data/user/<userid>/<packagename>/shared_prefs/<AppName>``
"""
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:
Expand All @@ -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/<userid>/<packagename>/cache/<AppName>``"""
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:
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")


Expand Down

0 comments on commit 62713e4

Please sign in to comment.