Skip to content

Commit

Permalink
chore: remove implementation logic from shared data
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekMaggio committed Apr 16, 2024
1 parent 373cf54 commit f6ce258
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions shared-data/python/opentrons_shared_data/performance/dev_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,18 @@
from pathlib import Path
from enum import Enum

DecoratedFunction = TypeVar("_T", bound=Callable[..., Any])
F = TypeVar("F", bound=Callable[..., Any])

class SupportsTracking(Protocol):
def __init__(self, storage_dir: Path, should_track: bool) -> None:
...

def track(self, state: "RobotContextState") -> Callable[[DecoratedFunction], DecoratedFunction]:
def track(self, state: "RobotContextState") -> Callable[[F], F]:
...

def store(self) -> None:
...

class robot_context_tracker(SupportsTracking):
def __init__(self, storage_dir: Path, should_track: bool) -> None:
pass

def track(self, state: "RobotContextState") -> Callable[[DecoratedFunction], DecoratedFunction]:
def inner_decorator(func: DecoratedFunction) -> DecoratedFunction:
return func
return inner_decorator

def store(self) -> None:
pass

class RobotContextState(Enum):
"""Enum representing different states of a robot's operation context."""
Expand Down

0 comments on commit f6ce258

Please sign in to comment.