Skip to content

Commit

Permalink
allow floats for _GetDataType (#546)
Browse files Browse the repository at this point in the history
note that `float` in the mypy typing system includes `int` so including `| int` would be redundant

Co-authored-by: Nikita Sobolev <[email protected]>
  • Loading branch information
asottile-sentry and sobolevn authored Feb 26, 2024
1 parent 6dec68c commit ab30bd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rest_framework-stubs/test.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ from rest_framework.response import _MonkeyPatchedResponse
from typing_extensions import TypeAlias

_GetDataType: TypeAlias = (
Mapping[str, str | bytes | int | Iterable[str | bytes | int]]
| Iterable[tuple[str, str | bytes | int | Iterable[str | bytes | int]]]
Mapping[str, str | bytes | float | Iterable[str | bytes | float]]
| Iterable[tuple[str, str | bytes | float | Iterable[str | bytes | float]]]
| None
)

Expand Down

0 comments on commit ab30bd9

Please sign in to comment.