From 264f0aff3c8cd5bd44b76bfc07d23b83711eb5e3 Mon Sep 17 00:00:00 2001 From: Joris Clement <7713214+joclement@users.noreply.github.com> Date: Wed, 19 Nov 2025 10:55:14 +0100 Subject: [PATCH 1/3] docs: update outdated link --- README.rst | 2 +- src/platformdirs/unix.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 8dc6502..968731f 100644 --- a/README.rst +++ b/README.rst @@ -32,7 +32,7 @@ On Linux (and other Unices), according to the `XDG Basedir Spec`_, it should be: ~/.local/share/ -.. _XDG Basedir Spec: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html +.. _XDG Basedir Spec: https://specifications.freedesktop.org/basedir/latest/ ``platformdirs`` to the rescue ============================== diff --git a/src/platformdirs/unix.py b/src/platformdirs/unix.py index fc75d8d..d67f939 100644 --- a/src/platformdirs/unix.py +++ b/src/platformdirs/unix.py @@ -25,8 +25,7 @@ def getuid() -> NoReturn: class Unix(PlatformDirsABC): # noqa: PLR0904 """ - On Unix/Linux, we follow the `XDG Basedir Spec `_. + On Unix/Linux, we follow the `XDG Basedir Spec `_. The spec allows overriding directories with environment variables. The examples shown are the default values, alongside the name of the environment variable that overrides them. Makes use of the `appname From eb8a40d71df3c94387ec8c3998915d3a142a3ae3 Mon Sep 17 00:00:00 2001 From: Joris Clement <7713214+joclement@users.noreply.github.com> Date: Wed, 19 Nov 2025 11:39:09 +0100 Subject: [PATCH 2/3] style: drop unneeded empty line --- src/platformdirs/unix.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/platformdirs/unix.py b/src/platformdirs/unix.py index d67f939..852d6bf 100644 --- a/src/platformdirs/unix.py +++ b/src/platformdirs/unix.py @@ -32,7 +32,6 @@ class Unix(PlatformDirsABC): # noqa: PLR0904 `, `version `, `multipath `, `opinion `, `ensure_exists `. - """ @property From f321d8a0337092ed4a99824dd0cefffdda307a38 Mon Sep 17 00:00:00 2001 From: Joris Clement <7713214+joclement@users.noreply.github.com> Date: Wed, 19 Nov 2025 11:39:54 +0100 Subject: [PATCH 3/3] docs: correct function description --- src/platformdirs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platformdirs/__init__.py b/src/platformdirs/__init__.py index 02daa59..d1c5e67 100644 --- a/src/platformdirs/__init__.py +++ b/src/platformdirs/__init__.py @@ -183,7 +183,7 @@ def site_cache_dir( :param version: See `version `. :param opinion: See `opinion `. :param ensure_exists: See `ensure_exists `. - :returns: cache directory tied to the user + :returns: cache directory shared by users """ return PlatformDirs( appname=appname,