-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
383 fix type hints that are not compatible with python 3.8 #428
383 fix type hints that are not compatible with python 3.8 #428
Conversation
…luate-and-document-motion-planning
WalkthroughThe changes involve updating the type hinting for the Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (3)code/planning/src/local_planner/motion_planning.py (3)
The addition of
The return type hint has been correctly updated from Line range hint I notice several other type hints in the file. Let's verify if they also need updates for Python 3.8 compatibility. ✅ Verification successfulNo type hint issues found in the file The type hints in the file are already compatible with Python 3.8. The file:
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Search for potential type hint issues in the file
# Look for built-in type hints that need to be replaced with typing module equivalents
# Search for type hints using built-in types (list, dict, tuple, etc.)
echo "Searching for type hints using built-in types..."
rg -U "def [^(]+\([^)]*\)\s*->\s*(list|dict|tuple|set)\[" code/planning/src/local_planner/motion_planning.py
# Search for variable annotations using built-in types
echo "Searching for variable annotations using built-in types..."
rg -U ":\s*(list|dict|tuple|set)\[" code/planning/src/local_planner/motion_planning.py
Length of output: 433 Script: #!/bin/bash
# Let's search for all type hints in the file to get a complete picture
echo "Searching for all type hints and annotations..."
rg -U "def [^(]+\([^)]*\)\s*->\s*\w+.*:|:\s*\w+.*=|#\s*type:\s+" code/planning/src/local_planner/motion_planning.py
# Also search specifically for typing module usage
echo "Searching for typing module usage..."
rg -U "from typing import|List|Dict|Tuple|Set|Optional|Union|Any|Callable" code/planning/src/local_planner/motion_planning.py
Length of output: 7398 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description
With #418 I used a not yet compatible version of type hinting. This reverts the mistake.
Type of change
Please delete options that are not relevant.
Summary by CodeRabbit
List
from thetyping
module.