Skip to content

Commit

Permalink
RUFF
Browse files Browse the repository at this point in the history
  • Loading branch information
gazoodle committed Mar 4, 2025
1 parent f90a5ab commit f3c6395
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/geckolib/driver/udp_protocol_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def default_retry_failed_handler(
) -> None:
"""Handle retry failure."""
_LOGGER.debug("Default retry failed handler for %r being used", handler)
handler._should_remove_handler = True # noqa: SLF001
handler._should_remove_handler = True

# Pythonic methods
def __repr__(self) -> str:
Expand Down
8 changes: 4 additions & 4 deletions src/geckolib/utils/snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def _parse_json(self, json: str) -> None:
def parse_json(json: str) -> GeckoSnapshot:
"""Parse a JSON snapshot."""
snapshot = GeckoSnapshot()
snapshot._parse_json(json) # noqa: SLF001
snapshot._parse_json(json)
return snapshot

@staticmethod
Expand All @@ -310,9 +310,9 @@ def create(pack_type: str, config_version: str, log_version: str) -> GeckoSnapsh
snapshot.parse("intouch version EN 88 v15.0")
snapshot.parse("intouch version CO 89 v11.0")

snapshot._config_version = config_version # noqa: SLF001
snapshot._log_version = log_version # noqa: SLF001
snapshot._bytes = bytearray(1024) # noqa: SLF001
snapshot._config_version = config_version
snapshot._log_version = log_version
snapshot._bytes = bytearray(1024)

return snapshot

Expand Down

0 comments on commit f3c6395

Please sign in to comment.