Skip to content

Commit

Permalink
Stop constant from being modified
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekMaggio committed Apr 23, 2024
1 parent ec3e637 commit b1727fa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from functools import wraps, partial
from time import perf_counter_ns
from typing import Callable, TypeVar, cast
from typing import Callable, TypeVar, cast, Literal, Final


from typing_extensions import ParamSpec
Expand Down Expand Up @@ -46,7 +46,7 @@ def _get_timing_function() -> Callable[[], int]:
class RobotContextTracker(SupportsTracking):
"""Tracks and stores robot context and execution duration for different operations."""

METADATA_NAME = "robot_context_data"
METADATA_NAME: Final[Literal["robot_context_data"]] = "robot_context_data"

def __init__(self, storage_location: Path, should_track: bool = False) -> None:
"""Initializes the RobotContextTracker with an empty storage list."""
Expand Down

0 comments on commit b1727fa

Please sign in to comment.