Skip to content

Commit

Permalink
Add comments explaining type: ignore #16
Browse files Browse the repository at this point in the history
  • Loading branch information
RexBerry committed Feb 8, 2023
1 parent a5aa450 commit 9064191
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flight/avoidance/obstacle_avoidance.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ async def calculate_avoidance_velocity(
drone_position: mavsdk.telemetry.Position = await anext(drone.telemetry.position())

# Convert drone position to Point object
# type ignore comments are to allow shadowing
drone_position: Point = Point.from_mavsdk_position(drone_position) # type: ignore

# Convert obstacle data to list of Point objects
Expand Down

0 comments on commit 9064191

Please sign in to comment.