From 22129b3d0bdc1d0e4a3136a447e7402e8297a77c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vlastimil=20Z=C3=ADma?= Date: Tue, 17 Dec 2024 04:20:53 +0100 Subject: [PATCH] Fix annotations for assertJSON* (#278) Fix `assertJSON*` annotations to match all supported input types. --- django-stubs/test/testcases.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django-stubs/test/testcases.pyi b/django-stubs/test/testcases.pyi index 9da91884d..a5ba8c8f6 100644 --- a/django-stubs/test/testcases.pyi +++ b/django-stubs/test/testcases.pyi @@ -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: ...