From 82ab0c1d11e53eaedfff1ea94878f0866fddcff4 Mon Sep 17 00:00:00 2001 From: David Euresti Date: Sat, 30 Oct 2021 12:05:49 -0700 Subject: [PATCH] Fix mypy tests. Looks like the tests are error order sensitive (#856) --- tests/test_mypy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_mypy.yml b/tests/test_mypy.yml index fb2d1ecbf..ca17b0a66 100644 --- a/tests/test_mypy.yml +++ b/tests/test_mypy.yml @@ -785,10 +785,10 @@ bad_overloaded: int = attr.ib(converter=bad_overloaded_converter) reveal_type(A) out: | - main:15: error: Argument "converter" has incompatible type "Callable[[], str]"; expected "Callable[[Any], Any]" main:15: error: Cannot determine __init__ type from converter - main:16: error: Argument "converter" has incompatible type overloaded function; expected "Callable[[Any], Any]" + main:15: error: Argument "converter" has incompatible type "Callable[[], str]"; expected "Callable[[Any], Any]" main:16: error: Cannot determine __init__ type from converter + main:16: error: Argument "converter" has incompatible type overloaded function; expected "Callable[[Any], Any]" main:17: note: Revealed type is "def (bad: Any, bad_overloaded: Any) -> main.A" - case: testAttrsUsingBadConverterReprocess @@ -814,10 +814,10 @@ bad_overloaded: int = attr.ib(converter=bad_overloaded_converter) reveal_type(A) out: | - main:16: error: Argument "converter" has incompatible type "Callable[[], str]"; expected "Callable[[Any], Any]" main:16: error: Cannot determine __init__ type from converter - main:17: error: Argument "converter" has incompatible type overloaded function; expected "Callable[[Any], Any]" + main:16: error: Argument "converter" has incompatible type "Callable[[], str]"; expected "Callable[[Any], Any]" main:17: error: Cannot determine __init__ type from converter + main:17: error: Argument "converter" has incompatible type overloaded function; expected "Callable[[Any], Any]" main:18: note: Revealed type is "def (bad: Any, bad_overloaded: Any) -> main.A" - case: testAttrsUsingUnsupportedConverter