Skip to content

Commit

Permalink
chore(deps): update dependency mypy to v1.14.1
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and languitar committed Jan 12, 2025
1 parent a340441 commit c71210a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion requirements-check.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ruff==0.8.6
black==24.10.0
isort==5.13.2
mypy==1.13.0
mypy==1.14.1
types-tzlocal
types-requests
types-pytz
Expand Down
6 changes: 3 additions & 3 deletions src/autosuspend/checks/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,9 @@ def create(cls, name: str, config: configparser.SectionProxy) -> "Users":
with warnings.catch_warnings():
warnings.simplefilter("ignore", FutureWarning)
try:
user_regex = re.compile(config.get("name", fallback=r".*"))
terminal_regex = re.compile(config.get("terminal", fallback=r".*"))
host_regex = re.compile(config.get("host", fallback=r".*"))
user_regex = re.compile(config.get("name", fallback=r".*")) # type: ignore
terminal_regex = re.compile(config.get("terminal", fallback=r".*")) # type: ignore
host_regex = re.compile(config.get("host", fallback=r".*")) # type: ignore
return cls(name, user_regex, terminal_regex, host_regex)
except re.error as error:
raise ConfigurationError(
Expand Down
2 changes: 1 addition & 1 deletion src/autosuspend/checks/mpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def create(cls, name: str, config: configparser.SectionProxy) -> "Mpd":
host = config.get("host", fallback="localhost")
port = config.getint("port", fallback=6600)
timeout = config.getint("timeout", fallback=5)
return cls(name, host, port, timeout)
return cls(name, host, port, timeout) # type: ignore
except ValueError as error:
raise ConfigurationError(
f"Host port or timeout configuration wrong: {error}"
Expand Down
6 changes: 3 additions & 3 deletions src/autosuspend/checks/systemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ def create(
name: str,
config: configparser.SectionProxy,
) -> "LogindSessionsIdle":
types = config.get("types", fallback="tty,x11,wayland").split(",")
types = config.get("types", fallback="tty,x11,wayland").split(",") # type: ignore
types = [t.strip() for t in types]
states = config.get("states", fallback="active,online").split(",")
states = config.get("states", fallback="active,online").split(",") # type: ignore
states = [t.strip() for t in states]
classes = config.get("classes", fallback="user").split(",")
classes = config.get("classes", fallback="user").split(",") # type: ignore
classes = [t.strip() for t in classes]
return cls(name, types, states, classes)

Expand Down
2 changes: 1 addition & 1 deletion src/autosuspend/checks/xorg.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def create(cls, name: str, config: configparser.SectionProxy) -> "XIdleTime":
return cls(
name,
config.getint("timeout", fallback=600),
config.get("method", fallback="sockets"),
config.get("method", fallback="sockets"), # type: ignore
re.compile(config.get("ignore_if_process", fallback=r"a^")),
re.compile(config.get("ignore_users", fallback=r"a^")),
)
Expand Down

0 comments on commit c71210a

Please sign in to comment.