File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 66from typing import Any
77
88import pytest
9- from attrs import define , has , frozen
9+ from attrs import define , frozen , has
1010
1111from cattrs import Converter , override
12- from cattrs .gen import make_dict_structure_fn
1312from cattrs .errors import ClassValidationError , StructureHandlerNotFoundError
13+ from cattrs .gen import make_dict_structure_fn
1414from cattrs .strategies import configure_tagged_union , include_subclasses
1515
1616from .._compat import is_py311_plus
@@ -540,6 +540,11 @@ class Sub(Mid1, Mid2):
540540
541541
542542def test_subclasses_in_struct_factory ():
543+ """
544+ Check the structuring does not fail with an attribute error when include_subclasses
545+ is called within a structure_hook_factory on a complex class tree involving
546+ subclasses several levels deep (#721)
547+ """
543548
544549 @frozen
545550 class SubA :
You can’t perform that action at this time.
0 commit comments