File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed
Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,10 @@ errors_diff = """
44"""
55output = """
66ERROR directives_assert_type.py:27:16-24: assert_type(int | str, int) failed [assert-type]
7- ERROR directives_assert_type.py:28:16-24: assert_type(Any, int) failed [assert-type]
8- ERROR directives_assert_type.py:29:16-24: assert_type(Literal[4], int) failed [assert-type]
9- ERROR directives_assert_type.py:31:16-18: assert_type needs 2 positional arguments, got 0 [bad-argument-count]
10- ERROR directives_assert_type.py:32:16-25: assert_type(Literal[''], int) failed [assert-type]
11- ERROR directives_assert_type.py:33:16-33: assert_type needs 2 positional arguments, got 3 [bad-argument-count]
7+ ERROR directives_assert_type.py:28:16-24: assert_type(int | str, Any) failed [assert-type]
8+ ERROR directives_assert_type.py:29:16-24: assert_type(Any, int) failed [assert-type]
9+ ERROR directives_assert_type.py:30:16-24: assert_type(Literal[4], int) failed [assert-type]
10+ ERROR directives_assert_type.py:32:16-18: assert_type needs 2 positional arguments, got 0 [bad-argument-count]
11+ ERROR directives_assert_type.py:33:16-25: assert_type(Literal[''], int) failed [assert-type]
12+ ERROR directives_assert_type.py:34:16-33: assert_type needs 2 positional arguments, got 3 [bad-argument-count]
1213"""
Original file line number Diff line number Diff line change @@ -3,9 +3,11 @@ errors_diff = """
33"""
44output = """
55directives_assert_type.py:27: error: Expression is of type "int | str", not "int" [misc]
6- directives_assert_type.py:28: error: Expression is of type "Any", not "int" [misc]
7- directives_assert_type.py:29: error: Expression is of type "Literal[4]", not "int" [misc]
8- directives_assert_type.py:31: error: "assert_type" expects 2 arguments [call-arg]
9- directives_assert_type.py:32: error: Expression is of type "Literal['']", not "int" [misc]
10- directives_assert_type.py:33: error: "assert_type" expects 2 arguments [call-arg]
6+ directives_assert_type.py:28: error: Expression is of type "int | str", not "Any" [misc]
7+ directives_assert_type.py:29: error: Expression is of type "Any", not "int" [misc]
8+ directives_assert_type.py:30: error: Expression is of type "Literal[4]", not "int" [misc]
9+ directives_assert_type.py:32: error: "assert_type" expects 2 arguments [call-arg]
10+ directives_assert_type.py:33: error: Expression is of type "Literal['']", not "int" [misc]
11+ directives_assert_type.py:34: error: "assert_type" expects 2 arguments [call-arg]
12+ directives_assert_type.py:41: error: Expression is of type "str", not "str | Literal['spam']" [misc]
1113"""
You can’t perform that action at this time.
0 commit comments