Skip to content

Commit 804688b

Browse files
committed
pyright error burndown
1 parent 0841c19 commit 804688b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

django_typer/management/commands/shellcompletion.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,6 @@ def remove(
379379

380380
# its less brittle to install and use the returned path to uninstall
381381
self.shell = shell # type: ignore
382-
stdout = self.stdout
383-
self.stdout = io.StringIO()
384382
prog_name = str(manage_script or self.manage_script_name)
385383
installed_path = install(shell=self.shell.value, prog_name=prog_name)[1]
386384
if self.shell in [Shells.pwsh, Shells.powershell]:
@@ -431,7 +429,6 @@ def remove(
431429
with open(rc_file, "wt", encoding="utf-8") as rc:
432430
rc.writelines(edited)
433431

434-
self.stdout = stdout
435432
self.stdout.write(
436433
self.style.WARNING( # pylint: disable=no-member
437434
gettext("Removed autocompletion for {shell}.").format(
@@ -560,7 +557,7 @@ def get_completions(self, args, incomplete):
560557
def call_fallback(fb: t.Optional[str]) -> None:
561558
fallback = import_string(fb) if fb else self.django_fallback
562559
if cmd_str and inspect.signature(fallback).parameters:
563-
fallback(cmd_str)
560+
fallback(cmd_str) # pyright: ignore[reportCallIssue]
564561
else:
565562
fallback()
566563

0 commit comments

Comments
 (0)