mirror of
https://github.com/ZGCA-Forge/MsgCenterPy.git
synced 2026-03-24 09:08:32 +00:00
ci: update Python version in CI workflows to 3.11
- Changed Python version from 3.10 to 3.11 in ci.yml and publish.yml workflows. - Updated cache keys and build names accordingly. - Simplified conditional logic in ros2_instance.py for interface determination.
This commit is contained in:
@@ -40,11 +40,7 @@ class ROS2MessageInstance(MessageInstance[Any]):
|
||||
interface = (
|
||||
"msg"
|
||||
if ".msg" in module_name
|
||||
else "srv"
|
||||
if ".srv" in module_name
|
||||
else "action"
|
||||
if ".action" in module_name
|
||||
else "msg"
|
||||
else "srv" if ".srv" in module_name else "action" if ".action" in module_name else "msg"
|
||||
)
|
||||
return f"{package}/{interface}/{class_name}" if package and class_name else f"{module_name}.{class_name}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user