fix(docs): replace non-breaking hyphen in docstring to pass lint
CI / push-validation (pull_request) Successful in 46s
CI / helm (pull_request) Successful in 52s
CI / build (pull_request) Successful in 1m17s
CI / lint (pull_request) Successful in 1m44s
CI / quality (pull_request) Successful in 1m44s
CI / typecheck (pull_request) Successful in 2m6s
CI / security (pull_request) Successful in 2m5s
CI / integration_tests (pull_request) Successful in 3m40s
CI / unit_tests (pull_request) Failing after 6m37s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / status-check (pull_request) Failing after 3s

The RUF002 rule flagged a non-breaking hyphen (U+2011) in the
_relative_to() docstring. Replaced with regular hyphen for clean CI.
This commit is contained in:
2026-05-17 18:39:19 +00:00
parent 3af59f95ab
commit ec72fcd1ac
+1 -1
View File
@@ -183,7 +183,7 @@ def _relative_to(path: str, root: str) -> str:
"""Return the part of *path* relative to *root*.
Uses :func:`posixpath.relpath` for canonical relative-path extraction,
consistent with :func:`_is_under`. This avoids string-slicing prefixcollision
consistent with :func:`_is_under`. This avoids string-slicing prefix-collision
attacks where an attacker filename is a literal prefix of the sandbox root
(see issue #7478).