Skip to content
Snippets Groups Projects
Verified Commit 0b9c67c0 authored by Anton Tetov Johansson's avatar Anton Tetov Johansson
Browse files

make type hints compatible with py3.9

parent 557f9648
No related branches found
No related tags found
No related merge requests found
Pipeline #1913 passed
import logging import logging
import socket import socket
from typing import Union from typing import Optional, Union
# TODO: Integration tests with socket server mimicking UR controller. # TODO: Integration tests with socket server mimicking UR controller.
...@@ -79,7 +79,7 @@ class URSocketClient: ...@@ -79,7 +79,7 @@ class URSocketClient:
def send_script( def send_script(
self, script: Union[str, bytes], await_response=False self, script: Union[str, bytes], await_response=False
) -> str | None: ) -> Optional[str]:
if isinstance(script, str): if isinstance(script, str):
script = script.encode(encoding="utf-8") script = script.encode(encoding="utf-8")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment