Skip to content

Commit 8872f98

Browse files
renovate[bot]Daniel Girtler
andauthored
chore(deps): update dependency mypy to v1.19.0 (#3956)
* chore(deps): update dependency mypy to v1.19.0 * Update * Update --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Girtler <dgirtler@atlassian.com>
1 parent 601e033 commit 8872f98

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

archinstall/lib/models/authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def json(self) -> U2FLoginConfigSerialization:
4444
def parse_arg(args: U2FLoginConfigSerialization) -> 'U2FLoginConfiguration | None':
4545
u2f_login_method = args.get('u2f_login_method')
4646

47-
if u2f_login_method is None:
47+
if not u2f_login_method:
4848
return None
4949

5050
u2f_config = U2FLoginConfiguration(u2f_login_method=U2FLoginMethod(u2f_login_method))

archinstall/lib/models/users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def parse_arguments(
201201
elif enc_password:
202202
password = Password(enc_password=enc_password)
203203

204-
if username is None or password is None:
204+
if not username or password is None:
205205
continue
206206

207207
user = User(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Source = "https://github.com/archlinux/archinstall"
3333
[project.optional-dependencies]
3434
log = ["systemd_python==235"]
3535
dev = [
36-
"mypy==1.18.2",
36+
"mypy==1.19.0",
3737
"flake8==7.3.0",
3838
"pre-commit==4.5.0",
3939
"ruff==0.14.8",

0 commit comments

Comments
 (0)