Browse Source

Update type hint

pull/8/head
Richard Neumann 3 years ago
parent
commit
b7019ca5f3
  1. 4
      tests/test_config.py

4
tests/test_config.py

@ -3,7 +3,7 @@
from itertools import product from itertools import product
from random import shuffle from random import shuffle
from string import printable from string import printable
from typing import Iterator, Tuple from typing import Iterator
from unittest import TestCase from unittest import TestCase
from rcon.config import Config from rcon.config import Config
@ -30,7 +30,7 @@ class TestConfig(TestCase):
self.ports = range(65_536) self.ports = range(65_536)
@property @property
def _sockets(self) -> Iterator[Tuple[str, int]]: def _sockets(self) -> Iterator[tuple[str, int]]:
"""Yields (host, port) tuples.""" """Yields (host, port) tuples."""
return product(self.hosts, self.ports) return product(self.hosts, self.ports)

Loading…
Cancel
Save