Skip to content

Commit

Permalink
Use typing.Final for constant #16
Browse files Browse the repository at this point in the history
  • Loading branch information
RexBerry committed Mar 23, 2023
1 parent 23e7d0f commit 3e7aff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flight/avoidance/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import asyncio
import random
from typing import AsyncIterator
from typing import AsyncIterator, Final

import mavsdk
import mavsdk.core
Expand All @@ -16,7 +16,7 @@
from .movement import goto_location_offboard
from .point import InputPoint, Point

TAKEOFF_ALTITUDE: float = 40.0
TAKEOFF_ALTITUDE: Final[float] = 40.0


async def takeoff(drone: mavsdk.System, altitude: float) -> None:
Expand Down

0 comments on commit 3e7aff6

Please sign in to comment.