Skip to content

Instantly share code, notes, and snippets.

@peacememories
Created June 20, 2022 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peacememories/b454c0ef69290e1927b3cb282feea3c2 to your computer and use it in GitHub Desktop.
Save peacememories/b454c0ef69290e1927b3cb282feea3c2 to your computer and use it in GitHub Desktop.
django-click stub for mypy
from typing import Any, Callable, Optional, TypeVar, Union, overload
from click import Group
F = TypeVar("F", bound=Callable[..., Any])
@overload
def group(
__func: Callable[..., Any],
) -> Group: ...
@overload
def group(
name: Optional[str] = None,
**attrs: Any,
) -> Callable[[F], Group]: ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment