2026-02-16
This commit is contained in:
@@ -97,7 +97,13 @@ def make_annotations(cls):
|
||||
if bl_props:
|
||||
if "__annotations__" not in cls.__dict__:
|
||||
setattr(cls, "__annotations__", {})
|
||||
annotations = cls.__dict__["__annotations__"]
|
||||
|
||||
try:
|
||||
annotations = cls.__dict__["__annotations__"]
|
||||
except KeyError:
|
||||
# Fedora 43 bug workaround #1823
|
||||
annotations = getattr(cls, "__annotations__")
|
||||
|
||||
for k, v in bl_props.items():
|
||||
annotations[k] = v
|
||||
delattr(cls, k)
|
||||
|
||||
Reference in New Issue
Block a user