-
Notifications
You must be signed in to change notification settings - Fork 281
Closed
Labels
Description
Describe the Bug
This is similar to #1555, however the commit 59098f4 included in 0.48.0 did not resolve the issue as I encounter it. Please see the unexpected error below, I tried to minimize it (see https://github.com/typeddjango/django-stubs/blob/f788f6ce9833c6805bad7a3cd19c77893b9f9063/django-stubs/views/decorators/http.pyi for the real definition of require_GET).
from collections.abc import Callable
from typing import Any, TypeVar
F = TypeVar("F", bound=Callable[..., Any])
require_GET: Callable[[F], F]
@require_GET
def view() -> Any: ...Error:
ERROR Argument `() -> Any` is not assignable to parameter with type `TypeVar[F]` [bad-argument-type]
--> x.pyi:8:1
|
8 | @require_GET
| ^^^^^^^^^^^^
|
Sandbox Link
(Only applicable for extension issues) IDE Information
No response
Reactions are currently unavailable