Skip to content

Commit

Permalink
Fixed optional annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
kjy5 committed Jan 26, 2024
1 parent 4c4b677 commit 160ca36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ephys_link/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
4. Relay the response from :mod:`ephys_link.sensapex_handler` to the callback function
"""

from __future__ import annotations

import json
import sys
from signal import SIGINT, SIGTERM, signal
Expand Down Expand Up @@ -354,7 +356,7 @@ async def catch_all(_, __, data: Any) -> str:
print(f"[UNKNOWN EVENT]:\t {data}")
return "UNKNOWN_EVENT"

def launch(self, platform_type: str, server_port: int, pathfinder_port: int = None) -> None:
def launch(self, platform_type: str, server_port: int, pathfinder_port: int | None = None) -> None:
"""Launch the server.
:param platform_type: Parsed argument for platform type.
Expand Down

0 comments on commit 160ca36

Please sign in to comment.