transport: add return type annotation to method __str__

The abstract class LinkBase has no return type annotation on its
__str__ method.

Related: OS#6210
Change-Id: I26d3d2714708dbe957704b60d17ba2afa325b2c4
This commit is contained in:
Philipp Maier
2023-10-10 11:59:03 +02:00
parent 6bfa8a8533
commit 58e89eb15a
5 changed files with 5 additions and 5 deletions

View File

@@ -93,5 +93,5 @@ class PcscSimLink(LinkBase):
# Return value
return i2h(data), i2h(sw)
def __str__(self):
def __str__(self) -> str:
return "PCSC:%u[%s]" % (self._reader_number, self._reader)