We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a67341c commit 3983c36Copy full SHA for 3983c36
swift/codegen/lib/schema/schema.py
@@ -174,13 +174,12 @@ def _get_class(cls: type) -> Class:
174
derived={d.__name__ for d in cls.__subclasses__()},
175
# getattr to inherit from bases
176
group=getattr(cls, "group", ""),
177
- # not getattr not to inherit from bases
+ # in the following we don't use `getattr` to avoid inheriting
178
pragmas=cls.__dict__.get("pragmas", []),
179
180
ipa=cls.__dict__.get("ipa", None),
181
properties=[
182
a | _PropertyNamer(n)
183
- for n, a in cls.__annotations__.items()
+ for n, a in cls.__dict__.get("__annotations__", {}).items()
184
],
185
)
186
0 commit comments