From 419396ab5464cbc2ce24d6128d6dc6283c8898ca Mon Sep 17 00:00:00 2001 From: Karataev Pavel Date: Fri, 30 Aug 2024 02:58:40 +0300 Subject: [PATCH] Update tests for pyright 1.1.378 --- tests/pyright/test_arrays.py | 8 ++++---- tests/pyright/test_fields.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/pyright/test_arrays.py b/tests/pyright/test_arrays.py index dc4d9e099..d9b53bda1 100644 --- a/tests/pyright/test_arrays.py +++ b/tests/pyright/test_arrays.py @@ -34,7 +34,7 @@ class Foo(models.Model): ), Result( type="error", - message='Cannot assign member "array" for type "Foo"', + message='Cannot assign to attribute "array" for class "Foo"', line=13, column=3, ), @@ -82,7 +82,7 @@ class Foo(models.Model): ), Result( type="error", - message='Cannot assign member "array" for type "Foo"', + message='Cannot assign to attribute "array" for class "Foo"', line=15, column=3, ), @@ -133,7 +133,7 @@ class Foo(models.Model): ), Result( type="error", - message='Cannot assign member "array" for type "Foo"', + message='Cannot assign to attribute "array" for class "Foo"', line=18, column=3, ), @@ -197,7 +197,7 @@ class Foo(models.Model): ), Result( type="error", - message='Cannot assign member "array" for type "Foo"', + message='Cannot assign to attribute "array" for class "Foo"', line=19, column=3, ), diff --git a/tests/pyright/test_fields.py b/tests/pyright/test_fields.py index ce43a04fb..2358ff7d6 100644 --- a/tests/pyright/test_fields.py +++ b/tests/pyright/test_fields.py @@ -32,7 +32,7 @@ class Foo(models.Model): ), Result( type="error", - message='Cannot assign member "integer_with_choices" for type "Foo"', + message='Cannot assign to attribute "integer_with_choices" for class "Foo"', line=15, column=3, ), @@ -103,7 +103,7 @@ class Foo(models.Model): ), Result( type="error", - message='Cannot assign member "char_with_choices" for type "Foo"', + message='Cannot assign to attribute "char_with_choices" for class "Foo"', line=15, column=3, ),