Skip to content

Commit

Permalink
Give generate_media_config optional return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddasol committed Dec 11, 2024
1 parent be2ba62 commit 593e4c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/robot_interface/models/mission/task.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from dataclasses import dataclass, field
from enum import Enum
from typing import Iterator, Literal, Optional, Type, Union
from typing import Literal, Optional, Type, Union

from alitra import Pose, Position

Expand Down
4 changes: 2 additions & 2 deletions src/robot_interface/robot_interface.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from abc import ABCMeta, abstractmethod
from queue import Queue
from threading import Thread
from typing import Callable, List
from typing import Callable, List, Optional

from robot_interface.models.robots.media import MediaConfig
from robot_interface.models.initialize import InitializeParams
Expand Down Expand Up @@ -226,7 +226,7 @@ def initialize(self, params: InitializeParams) -> None:
raise NotImplementedError

@abstractmethod
def generate_media_config(self) -> MediaConfig:
def generate_media_config(self) -> Optional[MediaConfig]:
"""
Generate a JSON containing the url and token needed to establish a media stream
connection to a robot.
Expand Down

0 comments on commit 593e4c7

Please sign in to comment.