Skip to content

Commit

Permalink
Update messages
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Oct 11, 2024
1 parent 213ffeb commit dcdd8d3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions asynq/tests/test_pyright.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ def test_return_type():
assert _run_pyright("asynq/tests/typing_example/param_spec.py") == [
dict(
rule="reportArgumentType",
message='Argument of type "Literal[\'1\']" cannot be assigned to parameter "arg1" of type "int" in function "asyncio"\n "Literal[\'1\']" is incompatible with "int"',
message='Argument of type "Literal[\'1\']" cannot be assigned to parameter "arg1" of type "int" in function "asyncio"\n "Literal[\'1\']" is not assignable to "int"',
range={
"start": {"line": 14, "character": 25},
"end": {"line": 14, "character": 28},
},
),
dict(
rule="reportArgumentType",
message='Argument of type "Literal[2]" cannot be assigned to parameter "arg2" of type "str" in function "asyncio"\n "Literal[2]" is incompatible with "str"',
message='Argument of type "Literal[2]" cannot be assigned to parameter "arg2" of type "str" in function "asyncio"\n "Literal[2]" is not assignable to "str"',
range={
"start": {"line": 14, "character": 35},
"end": {"line": 14, "character": 36},
Expand All @@ -38,31 +38,31 @@ def test_return_type():
assert _run_pyright("asynq/tests/typing_example/return_type.py") == [
dict(
rule="reportAssignmentType",
message='Expression of type "int" is incompatible with declared type "str"\n "int" is incompatible with "str"',
message='Type "int" is not assignable to declared type "str"\n "int" is not assignable to "str"',
range={
"start": {"line": 38, "character": 13},
"end": {"line": 38, "character": 31},
},
),
dict(
rule="reportAssignmentType",
message='Expression of type "int" is incompatible with declared type "str"\n "int" is incompatible with "str"',
message='Type "int" is not assignable to declared type "str"\n "int" is not assignable to "str"',
range={
"start": {"line": 41, "character": 13},
"end": {"line": 41, "character": 31},
},
),
dict(
rule="reportAssignmentType",
message='Expression of type "int" is incompatible with declared type "str"\n "int" is incompatible with "str"',
message='Type "int" is not assignable to declared type "str"\n "int" is not assignable to "str"',
range={
"start": {"line": 44, "character": 13},
"end": {"line": 44, "character": 31},
},
),
dict(
rule="reportAssignmentType",
message='Expression of type "int" is incompatible with declared type "str"\n "int" is incompatible with "str"',
message='Type "int" is not assignable to declared type "str"\n "int" is not assignable to "str"',
range={
"start": {"line": 47, "character": 13},
"end": {"line": 47, "character": 31},
Expand Down

0 comments on commit dcdd8d3

Please sign in to comment.