Skip to content

Commit d3eb733

Browse files
authored
Make APIView.content_negotiation_class type, not str (#155)
1 parent c1aa6bd commit d3eb733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework-stubs/views.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class GenericView(Protocol):
3737
class APIView(View):
3838
args: Any = ...
3939
authentication_classes: Sequence[Type[BaseAuthentication]] = ...
40-
content_negotiation_class: Optional[str] = ...
40+
content_negotiation_class: Type[BaseContentNegotiation] = ...
4141
format_kwarg: Any = ...
4242
headers: Dict[str, str] = ...
4343
kwargs: Any = ...

0 commit comments

Comments
 (0)