@@ -551,7 +551,7 @@ def multi_raise_py_error(v: Any) -> Any:
551
551
s2 .validate_python ('anything' )
552
552
553
553
cause_group = exc_info .value .__cause__
554
- assert isinstance (cause_group , BaseExceptionGroup ) # noqa: F821
554
+ assert isinstance (cause_group , BaseExceptionGroup )
555
555
assert len (cause_group .exceptions ) == 1
556
556
557
557
cause = cause_group .exceptions [0 ]
@@ -576,7 +576,7 @@ def outer_raise_py_error(v: Any) -> Any:
576
576
with pytest .raises (ValidationError ) as exc_info :
577
577
s3 .validate_python ('anything' )
578
578
579
- assert isinstance (exc_info .value .__cause__ , BaseExceptionGroup ) # noqa: F821
579
+ assert isinstance (exc_info .value .__cause__ , BaseExceptionGroup )
580
580
assert len (exc_info .value .__cause__ .exceptions ) == 1
581
581
cause = exc_info .value .__cause__ .exceptions [0 ]
582
582
assert cause .__notes__ and cause .__notes__ [- 1 ].startswith ('\n Pydantic: ' )
@@ -585,7 +585,7 @@ def outer_raise_py_error(v: Any) -> Any:
585
585
assert isinstance (subcause , ValidationError )
586
586
587
587
cause_group = subcause .__cause__
588
- assert isinstance (cause_group , BaseExceptionGroup ) # noqa: F821
588
+ assert isinstance (cause_group , BaseExceptionGroup )
589
589
assert len (cause_group .exceptions ) == 1
590
590
591
591
cause = cause_group .exceptions [0 ]
0 commit comments