Skip to content

Commit e6809f1

Browse files
committed
try to ignore overloads for coverage
1 parent 2757a85 commit e6809f1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

django_typer/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def handle(
230230
}
231231

232232

233-
@t.overload
233+
@t.overload # pragma: no cover
234234
def get_command( # type: ignore[overload-overlap]
235235
command_name: str,
236236
stdout: t.Optional[t.IO[str]] = None,
@@ -241,7 +241,7 @@ def get_command( # type: ignore[overload-overlap]
241241
) -> BaseCommand: ...
242242

243243

244-
@t.overload
244+
@t.overload # pragma: no cover
245245
# mypy seems to break on this one, but this is correct
246246
def get_command(
247247
command_name: str,
@@ -254,7 +254,7 @@ def get_command(
254254
) -> C: ...
255255

256256

257-
@t.overload
257+
@t.overload # pragma: no cover
258258
def get_command(
259259
command_name: str,
260260
path0: str,
@@ -1208,12 +1208,12 @@ def __call__(self, *args: P.args, **kwargs: P.kwargs) -> R:
12081208
assert self.initializer
12091209
return self.initializer(*args, **kwargs)
12101210

1211-
@t.overload
1211+
@t.overload # pragma: no cover
12121212
def __get__(
12131213
self, obj: t.Union[None, t.Type["TyperCommand"]], owner: t.Any = None
12141214
) -> "CommandGroup[P, R]": ...
12151215

1216-
@t.overload
1216+
@t.overload # pragma: no cover
12171217
def __get__(
12181218
self, obj: "TyperCommand", owner: t.Any = None
12191219
) -> MethodType: # t.Union[MethodType, t.Callable[P, R]]

0 commit comments

Comments
 (0)