You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PS4 DualShock client fails to import on Python 3.11 and newer #4023
Importing the PS4 DualShock Python client on Python 3.11+ fails because PS4DualShock uses mutable dataclass instances as field defaults. On older Python versions, those defaults are shared between configurations. The teleop constructor also shares a default configuration across instances.
The module imports successfully and each default configuration owns its axis/button mappings.
Actual behavior
ValueError: mutable default <class '...DualShockAxes'> for field Axes is not allowed: use default_factory.
Environment
Reproduced at main (5399d29) using Python 3.12 with ROS imports stubbed for isolated testing. No robot or running ROS node is needed to reproduce the dataclass failure.
Activity