Skip to content

Commit

Permalink
LiteralString is only available since Python 3.11, so use str instead
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix committed Dec 23, 2024
1 parent 0f8b9d5 commit a017157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/wxpython/core/gcmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import time
import traceback
from threading import Thread
from typing import TYPE_CHECKING, LiteralString, TextIO
from typing import TYPE_CHECKING, TextIO

import wx
from core.debug import Debug
Expand Down Expand Up @@ -313,7 +313,7 @@ def _recv(self, which, maxsize):
message = "Other end disconnected!"


def recv_some(p, t=0.1, e=1, tr=5, stderr=0) -> LiteralString:
def recv_some(p, t=0.1, e=1, tr=5, stderr=0) -> str: # TODO: use LiteralString on 3.11+
tr = max(tr, 1)
x = time.time() + t
y = []
Expand Down

0 comments on commit a017157

Please sign in to comment.