File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 ))
Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ Source = "https://github.com/archlinux/archinstall"
3333[project .optional-dependencies ]
3434log = [" systemd_python==235" ]
3535dev = [
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" ,
You can’t perform that action at this time.
0 commit comments