Skip to content

Commit

Permalink
It fixed the bug when getting INDIRECT_get_class_properties with Inve…
Browse files Browse the repository at this point in the history
…rse properties
  • Loading branch information
carolreis committed Jan 30, 2023
1 parent d8668b1 commit 9e08036
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,9 @@ def get_class_properties(Class):
def INDIRECT_get_class_properties(Class):
l = set()
for r in _inherited_properties_value_restrictions(Class, None, set()):
if r.property._class_property_some and ((r.type == VALUE) or (r.type == SOME) or ((r.type == EXACTLY) and r.cardinality >= 1) or ((r.type == MIN) and r.cardinality >= 1)):
if getattr(r.property, "_class_property_some", False) and ((r.type == VALUE) or (r.type == SOME) or ((r.type == EXACTLY) and r.cardinality >= 1) or ((r.type == MIN) and r.cardinality >= 1)):
l.add(r.property)
elif r.property._class_property_only and (r.type == ONLY):
elif getattr(r.property, "_class_property_only", False) and (r.type == ONLY):
l.add(r.property)

for storid in Class.namespace.world._get_triples_s_p(Class.storid):
Expand Down

0 comments on commit 9e08036

Please sign in to comment.