Conversation
|
|
||
| self._transport: Optional[asyncio.ReadTransport] = None | ||
| self._async_iterator: Optional[AsyncIterator] = None | ||
| self._transport: asyncio.ReadTransport | None = None |
There was a problem hiding this comment.
[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
| self._transport: Optional[asyncio.ReadTransport] = None | ||
| self._async_iterator: Optional[AsyncIterator] = None | ||
| self._transport: asyncio.ReadTransport | None = None | ||
| self._async_iterator: AsyncIterator | None = None |
There was a problem hiding this comment.
[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
| def __init__(self): | ||
| self._listeners: Dict[MessageType, Set[MessageListener]] = defaultdict(set) | ||
| self._messages: Deque[Tuple[Message, str, int]] = deque() | ||
| self._listeners: dict[MessageType, set[MessageListener]] = defaultdict(set) |
There was a problem hiding this comment.
[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
| self._listeners: Dict[MessageType, Set[MessageListener]] = defaultdict(set) | ||
| self._messages: Deque[Tuple[Message, str, int]] = deque() | ||
| self._listeners: dict[MessageType, set[MessageListener]] = defaultdict(set) | ||
| self._messages: deque[tuple[Message, str, int]] = deque() |
There was a problem hiding this comment.
[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
| def publish_groups(self): | ||
| """Announce all known groups.""" | ||
| groups: Dict[str, List[str]] = { | ||
| groups: dict[str, list[str]] = { |
There was a problem hiding this comment.
[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
|
|
||
| for mapping in mappings_by_input[input_config]: | ||
| combination: List[InputConfig] = list(mapping.input_combination) | ||
| combination: list[InputConfig] = list(mapping.input_combination) |
There was a problem hiding this comment.
[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
|
|
||
| def __init__(self): | ||
| self._groups: List[_Group] = None | ||
| self._groups: list[_Group] = None |
There was a problem hiding this comment.
[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
| class Listener: | ||
| def __init__(self): | ||
| self.calls: List = [] | ||
| self.calls: list = [] |
There was a problem hiding this comment.
[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
| class Listener: | ||
| def __init__(self): | ||
| self.calls: List = [] | ||
| self.calls: list = [] |
There was a problem hiding this comment.
[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
| """we should get all preset of a group, when loading it""" | ||
| prepare_presets() | ||
| response: List[GroupData] = [] | ||
| response: list[GroupData] = [] |
There was a problem hiding this comment.
[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
| def test_load_group_without_presets_provides_none(self): | ||
| """We should get no presets when loading a group without presets.""" | ||
| response: List[GroupData] = [] | ||
| response: list[GroupData] = [] |
There was a problem hiding this comment.
[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
|
|
||
| def test_on_init_should_provide_groups(self): | ||
| calls: List[GroupsData] = [] | ||
| calls: list[GroupsData] = [] |
There was a problem hiding this comment.
[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
| output_symbol="a", | ||
| ) | ||
| calls: List[StatusData] = [] | ||
| calls: list[StatusData] = [] |
There was a problem hiding this comment.
[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
| self.data_manager.load_group("Foo Device 2") | ||
| self.data_manager.load_preset("preset2") | ||
| calls: List[StatusData] = [] | ||
| calls: list[StatusData] = [] |
There was a problem hiding this comment.
[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
| self.data_manager.load_group("Foo Device 2") | ||
| self.data_manager.load_preset("preset2") | ||
| calls: List[StatusData] = [] | ||
| calls: list[StatusData] = [] |
There was a problem hiding this comment.
[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
| self.data_manager.load_group("Foo Device 2") | ||
| self.data_manager.load_preset("preset2") | ||
| calls: List[StatusData] = [] | ||
| calls: list[StatusData] = [] |
There was a problem hiding this comment.
[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
| mock = MagicMock(return_value=InjectorState.RUNNING) | ||
| self.data_manager.get_state = mock | ||
| calls: List[StatusData] = [] | ||
| calls: list[StatusData] = [] |
There was a problem hiding this comment.
[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
No description provided.