Skip to content

v1.12

Compare
Choose a tag to compare
@Fatal1ty Fatal1ty released this 13 Dec 21:44
· 1084 commits to master since this release

Fix for derived data classes without annotations

In the version 1.11 if a data class without annotations had been derived from another data class, KeyError would have been raised as it shown in the following example:

@dataclass
class A:
    a: int

@dataclass
class B(A, DataClassDictMixin):
    pass

# ...
# KeyError: '__annotations__'