Skip to content
Snippets Groups Projects
Commit 365ef46a authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

FIX: class def and function arg

parent e066c47f
No related branches found
No related tags found
2 merge requests!91Release 0.3,!8backref
Pipeline #30413 failed
...@@ -33,14 +33,17 @@ from .utils import has_parent ...@@ -33,14 +33,17 @@ from .utils import has_parent
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
def class Identifiable(): class Identifiable():
def __init__(self, record_type, name=None, properties=None, backrefs=None): def __init__(self, record_type: str, name: str = None, properties: dict = None,
backrefs: list = None):
self.record_type = record_type self.record_type = record_type
self.name = name self.name = name
if properties is None: self.properties: dict = {}
self.properties = [] if properties is not None:
if backrefs is None: self.properties = properties
self.backrefs = [] self.backrefs: list = []
if backrefs is not None:
self.backrefs = backrefs
def convert_value(value): def convert_value(value):
...@@ -249,8 +252,7 @@ class IdentifiableAdapter(metaclass=ABCMeta): ...@@ -249,8 +252,7 @@ class IdentifiableAdapter(metaclass=ABCMeta):
) )
@abstractmethod @abstractmethod
def retrieve_identified_record_for_identifiable(self, identifiable: db.Record, def retrieve_identified_record_for_identifiable(self, identifiable: Identifiable):
referencing_entities=None):
""" """
Retrieve identifiable record for a given identifiable. Retrieve identifiable record for a given identifiable.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment