Skip to content

Commit cac06b3

Browse files
authored
Merge pull request #461 from fabinsch/fix-qplayer-doc-str
Fix invalid escape sequences in qplayer docstring
2 parents 8c95955 + 9313b87 commit cac06b3

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1616
- replace `std::numeric_limits<T>::infinity()` by `std::numeric_limits<T>::max()` ([#413](https://github.com/Simple-Robotics/proxsuite/pull/413))
1717
- Upgraded nanobind dependency version (submodule) to v2.9.2 ([#418](https://github.com/Simple-Robotics/proxsuite/pull/418))
1818
- Better dynamic module handling ([#419](https://github.com/Simple-Robotics/proxsuite/pull/419))
19+
- Fix `SyntaxError` on importing `proxsuite.torch.qplayer` caused by invalid escape sequences in the `QPFunction` docstring ([#458](https://github.com/Simple-Robotics/proxsuite/pull/461))
1920

2021
### Fixed
2122
- Correction of the status update for `PROXQP_SOLVED_CLOSEST_PRIMAL_FEASIBLE` ([#432](https://github.com/Simple-Robotics/proxsuite/pull/432))

bindings/python/proxsuite/torch/qplayer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def QPFunction(
1818
omp_parallel=False,
1919
structural_feasibility=True,
2020
):
21-
"""!
21+
r"""!
2222
Solve a batch of Quadratic Programming (QP) problems.
2323
2424
This function solves QP problems of the form:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ configure-args = ["-DBUILD_TESTING:BOOL=OFF","-DBUILD_PYTHON_INTERFACE:BOOL=ON",
2525

2626
[tool.ruff.lint]
2727
ignore = [ "E741" ]
28+
extend-select = ["W605"]
2829
exclude = [ "cmake-module/*", "bindings/python/external/nanobind/*" ]

0 commit comments

Comments
 (0)