Skip to content

fix(swift): use Slider/Label/Button's label kwarg, not deprecated desc - #622

Open
petercorke wants to merge 1 commit into
mainfrom
fix/swift-element-label-rename
Open

fix(swift): use Slider/Label/Button's label kwarg, not deprecated desc#622
petercorke wants to merge 1 commit into
mainfrom
fix/swift-element-label-rename

Conversation

@petercorke

Copy link
Copy Markdown
Owner

Summary

  • swift-sim renamed the desc constructor kwarg/property to label on all SwiftElement subclasses (jhavl/swift#135) — desc still works via a deprecation shim, but this updates RTB's own usages to the new name rather than carry the warning forward
  • Fixed in src/roboticstoolbox/demo/tripleangledemo.py, src/roboticstoolbox/demo/twistdemo.py, and examples/teach_swift.py

Test plan

  • pytest tests/test_demo.py — covers tripleangledemo/twistdemo construction, no regressions
  • Verified against a local combined build of swift's feat/element-desc-to-label + feat/label-compact branches (both still open, unmerged) — no DeprecationWarnings raised

🤖 Generated with Claude Code

swift-sim renamed the desc constructor kwarg/property to label on all
SwiftElement subclasses (jhavl/swift#135) -- desc still works via a
deprecation shim, but update RTB's own usages to the new name rather
than carry the warning forward.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant