File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ def define_pass_target(
347347 section : configparser .SectionProxy , request : Mapping [str , str ]
348348) -> str :
349349 """Determine the pass target by filling in potentially used variables."""
350- pass_target = section . get ( "target" ) .replace ("${host}" , request ["host" ])
350+ pass_target = section [ "target" ] .replace ("${host}" , request ["host" ])
351351 if "username" in request :
352352 pass_target = pass_target .replace ("${username}" , request ["username" ])
353353 if "protocol" in request :
@@ -387,7 +387,7 @@ def get_password(
387387 password_extractor = SpecificLineExtractor (0 , 0 , option_suffix = "_password" )
388388 password_extractor .configure (section )
389389
390- username_extractor_name = section .get (
390+ username_extractor_name : str = section .get ( # type: ignore
391391 "username_extractor" , fallback = _line_extractor_name
392392 )
393393 username_extractor = _username_extractors .get (username_extractor_name )
Original file line number Diff line number Diff line change 11ruff==0.9.1
22black==24.10.0
33isort==5.13.2
4- mypy==1.13.0
4+ mypy==1.14.1
You can’t perform that action at this time.
0 commit comments