Skip to content

Commit

Permalink
Remove None from accepted_renderer, accepted_media_type (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
q0w authored Sep 17, 2024
1 parent 693c87f commit ef5d173
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rest_framework-stubs/request.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class Request(HttpRequest):
parsers: Sequence[BaseParser] | None
authenticators: Sequence[BaseAuthentication | ForcedAuthentication] | None
negotiator: BaseContentNegotiation | None
accepted_renderer: BaseRenderer | None
accepted_media_type: str | None
accepted_renderer: BaseRenderer
accepted_media_type: str
parser_context: dict[str, Any]
version: str | None
versioning_scheme: BaseVersioning | None
Expand Down
4 changes: 2 additions & 2 deletions rest_framework-stubs/response.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class Response(SimpleTemplateResponse):
data: Any
exception: bool
content_type: str | None
accepted_renderer: BaseRenderer | None
accepted_media_type: str | None
accepted_renderer: BaseRenderer
accepted_media_type: str
_request: Request
def __init__(
self,
Expand Down

0 comments on commit ef5d173

Please sign in to comment.