Skip to content

Commit 3305522

Browse files
authored
Fix kwargs for forms.widgets.Script (#2973)
The annotation for keyword arguments must only be the type of the value. This fixes PR #2608.
1 parent aa98be2 commit 3305522

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django-stubs/forms/widgets.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class MediaOrderConflictWarning(RuntimeWarning): ...
1818
class MediaAsset:
1919
element_template: str
2020

21-
def __init__(self, path: str, **attributes: _OptAttrs) -> None: ...
21+
def __init__(self, path: str, **attributes: Any) -> None: ...
2222
def __eq__(self, other: object) -> bool: ...
2323
def __hash__(self) -> int: ...
2424
def __html__(self) -> SafeString: ...
@@ -28,7 +28,7 @@ class MediaAsset:
2828
class Script(MediaAsset):
2929
element_template: str
3030

31-
def __init__(self, src: str, **attributes: _OptAttrs) -> None: ...
31+
def __init__(self, src: str, **attributes: Any) -> None: ...
3232

3333
class Media:
3434
def __init__(

0 commit comments

Comments
 (0)