diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6fa8df2..f9b8575 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.15.22 + rev: v0.16.0 hooks: # Run the linter. - id: ruff diff --git a/src/hmf/_internals/_cache.py b/src/hmf/_internals/_cache.py index de2d0fd..89d273f 100644 --- a/src/hmf/_internals/_cache.py +++ b/src/hmf/_internals/_cache.py @@ -356,8 +356,7 @@ def _get_property(self): # Here we set the documentation doc = (f.__doc__ or "").strip() - if doc.startswith("\n"): - doc = doc[1:] + doc = doc.removeprefix("\n") return property(_get_property, _set_property, None, "**Parameter**: " + doc)