From a7c5574137589af05a86ebeed3233beeb347f9b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janek=20Nouvertn=C3=A9?= <25355197+provinzkraut@users.noreply.github.com> Date: Sat, 14 Sep 2024 10:42:15 +0200 Subject: [PATCH] Fix pydantic v2 private fields some more --- tests/unit/test_contrib/test_pydantic/test_integration.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/unit/test_contrib/test_pydantic/test_integration.py b/tests/unit/test_contrib/test_pydantic/test_integration.py index 9a21447f05..8673cd40de 100644 --- a/tests/unit/test_contrib/test_pydantic/test_integration.py +++ b/tests/unit/test_contrib/test_pydantic/test_integration.py @@ -215,8 +215,6 @@ class Config: underscore_fields_are_private = True _field: str = pydantic_v2.PrivateAttr() - # include an invalid annotation here to ensure we never touch those fields - _underscore_field: "foo" # type: ignore[name-defined] # noqa: F821 bar: str