From b2bd7cf409fdfc006c482662013810a9654ef2b9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 21 Jul 2023 09:44:29 +0000 Subject: [PATCH] chore(pre-commit.ci): auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- typesafety/pyright/types/json_obj.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/typesafety/pyright/types/json_obj.py b/typesafety/pyright/types/json_obj.py index cffcab4d4..f445901ce 100644 --- a/typesafety/pyright/types/json_obj.py +++ b/typesafety/pyright/types/json_obj.py @@ -17,8 +17,12 @@ def raw() -> None: # case: no other arguments # TODO: these error messages are weird... - Json('bar', 'foo') # E: Argument of type "Literal['bar']" cannot be assigned to parameter "object" of type "ReadableBuffer" in function "__new__" - Json('foo', item=1) # E: No overloads for "__new__" match the provided arguments + Json( + 'bar', 'foo' + ) # E: Argument of type "Literal['bar']" cannot be assigned to parameter "object" of type "ReadableBuffer" in function "__new__" + Json( + 'foo', item=1 + ) # E: No overloads for "__new__" match the provided arguments # case: invalid recursive type Json(