Skip to content

Commit

Permalink
chore(pre-commit.ci): auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 21, 2023
1 parent 4fd827f commit b2bd7cf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions typesafety/pyright/types/json_obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b2bd7cf

Please sign in to comment.