Skip to content

Commit

Permalink
Fix annotations for assertJSON* (#278)
Browse files Browse the repository at this point in the history
Fix `assertJSON*` annotations to match all supported input types.
  • Loading branch information
ziima authored Dec 17, 2024
1 parent 47d39dd commit 22129b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django-stubs/test/testcases.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ class SimpleTestCase(unittest.TestCase):
) -> None: ...
def assertJSONEqual(
self,
raw: str,
raw: str | bytes | bytearray,
expected_data: dict[str, Any] | list[Any] | str | int | float | bool | None,
msg: str | None = ...,
) -> None: ...
def assertJSONNotEqual(
self,
raw: str,
raw: str | bytes | bytearray,
expected_data: dict[str, Any] | list[Any] | str | int | float | bool | None,
msg: str | None = ...,
) -> None: ...
Expand Down

0 comments on commit 22129b3

Please sign in to comment.