Skip to content
Snippets Groups Projects

Add flag and cuid getters to Entity

Merged I. Nüske requested to merge f-fix-linter-errors into dev
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -1351,7 +1351,8 @@ class Entity:
else:
dt_str = xml2str(self.datatype.to_xml(visited_entities=visited_entities.copy()))
# Todo: Use for pretty-printing with calls from _repr_ only?
# dt_str = dt_str.replace('<', 'ᐸ').replace('>', 'ᐳ').replace(' ', '⠀').replace('"', '\'').replace('\n', '')
# dt_str = dt_str.replace('<', 'ᐸ').replace('>', 'ᐳ').replace(' ', '⠀').replace(
# '"', '\'').replace('\n', '')
xml.set("datatype", dt_str)
else:
xml.set("datatype", str(self.datatype))
@@ -3767,6 +3768,7 @@ class Container(list):
"""
return _filter_entity_list(self, pid=pid, name=name, entity=entity,
conjunction=conjunction)
@staticmethod
def _find_dependencies_in_container(container: Container):
"""Find elements in a container that are a dependency of another element of the same.
Loading