File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -133,11 +133,6 @@ def test_completion_install_fish():
133
133
assert "Completion will take effect once you restart the terminal" in result .stdout
134
134
135
135
136
- runner = CliRunner ()
137
- app = typer .Typer ()
138
- app .command ()(mod .main )
139
-
140
-
141
136
def test_completion_install_powershell ():
142
137
completion_path : Path = (
143
138
Path .home () / ".config/powershell/Microsoft.PowerShell_profile.ps1"
Original file line number Diff line number Diff line change @@ -436,7 +436,6 @@ def solve_typer_info_help(typer_info: TyperInfo) -> str:
436
436
437
437
def solve_typer_info_defaults (typer_info : TyperInfo ) -> TyperInfo :
438
438
values : Dict [str , Any ] = {}
439
- name = None
440
439
for name , value in typer_info .__dict__ .items ():
441
440
# Priority 1: Value was set in app.add_typer()
442
441
if not isinstance (value , DefaultPlaceholder ):
@@ -816,7 +815,7 @@ def get_click_param(
816
815
else :
817
816
default_value = param .default
818
817
parameter_info = OptionInfo ()
819
- annotation : Any = Any
818
+ annotation : Any
820
819
if not param .annotation == param .empty :
821
820
annotation = param .annotation
822
821
else :
You can’t perform that action at this time.
0 commit comments