From efc5156f9ec46dc079176ec95d4f80fe3bdf1894 Mon Sep 17 00:00:00 2001 From: Brian Kohan Date: Thu, 21 Nov 2024 03:48:35 -0800 Subject: [PATCH] add coverage omission --- django_typer/management/commands/shellcompletion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_typer/management/commands/shellcompletion.py b/django_typer/management/commands/shellcompletion.py index 4f9e02f..8c54607 100644 --- a/django_typer/management/commands/shellcompletion.py +++ b/django_typer/management/commands/shellcompletion.py @@ -244,7 +244,7 @@ def render(shell: Shells, **context) -> str: ) elif shell in [Shells.bash, Shells.zsh, Shells.fish]: typer_scripts._completion_scripts[shell.value] = render(shell, **context) - else: + else: # pragma: no cover raise NotImplementedError( gettext("Unsupported shell: {shell}").format(shell=shell.value) )