Skip to content

Ruff, black, copyright notice - #1342

Open
sezanzeb wants to merge 8 commits into
mainfrom
ruff
Open

Ruff, black, copyright notice#1342
sezanzeb wants to merge 8 commits into
mainfrom
ruff

Conversation

@sezanzeb

@sezanzeb sezanzeb commented Aug 4, 2026

Copy link
Copy Markdown
Owner

No description provided.

Comment thread inputremapper/ipc/pipe.py

self._transport: Optional[asyncio.ReadTransport] = None
self._async_iterator: Optional[AsyncIterator] = None
self._transport: asyncio.ReadTransport | None = None

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]

Comment thread inputremapper/ipc/pipe.py
self._transport: Optional[asyncio.ReadTransport] = None
self._async_iterator: Optional[AsyncIterator] = None
self._transport: asyncio.ReadTransport | None = None
self._async_iterator: AsyncIterator | None = None

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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]] = {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]

@sezanzeb sezanzeb changed the title Ruff Ruff, black, copyright notice Aug 4, 2026

for mapping in mappings_by_input[input_config]:
combination: List[InputConfig] = list(mapping.input_combination)
combination: list[InputConfig] = list(mapping.input_combination)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]

Comment thread inputremapper/groups.py

def __init__(self):
self._groups: List[_Group] = None
self._groups: list[_Group] = None

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]

Comment thread tests/unit/test_reader.py
class Listener:
def __init__(self):
self.calls: List = []
self.calls: list = []

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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 = []

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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] = []

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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] = []

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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] = []

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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] = []

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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] = []

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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] = []

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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] = []

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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] = []

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[mypy] reported by reviewdog 🐶
note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant