Skip to content
Snippets Groups Projects
Verified Commit 18271153 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

DOC: Typos.

parent 70bf1dbe
No related branches found
No related tags found
1 merge request!160STY: styling
Pipeline #47059 passed
...@@ -176,7 +176,7 @@ identifiabel, identifiable and identified record) for a Record. ...@@ -176,7 +176,7 @@ identifiabel, identifiable and identified record) for a Record.
@abstractmethod @abstractmethod
def get_file(self, identifiable: db.File): def get_file(self, identifiable: db.File):
warnings.warn(DeprecationWarning("This function is depricated. Please do not use it.")) warnings.warn(DeprecationWarning("This function is deprecated. Please do not use it."))
""" """
Retrieve the file object for a (File) identifiable. Retrieve the file object for a (File) identifiable.
""" """
...@@ -326,7 +326,7 @@ class LocalStorageIdentifiableAdapter(IdentifiableAdapter): ...@@ -326,7 +326,7 @@ class LocalStorageIdentifiableAdapter(IdentifiableAdapter):
Just look in records for a file with the same path. Just look in records for a file with the same path.
""" """
candidates = [] candidates = []
warnings.warn(DeprecationWarning("This function is depricated. Please do not use it.")) warnings.warn(DeprecationWarning("This function is deprecated. Please do not use it."))
for record in self._records: for record in self._records:
if record.role == "File" and record.path == identifiable.path: if record.role == "File" and record.path == identifiable.path:
candidates.append(record) candidates.append(record)
...@@ -474,7 +474,7 @@ class CaosDBIdentifiableAdapter(IdentifiableAdapter): ...@@ -474,7 +474,7 @@ class CaosDBIdentifiableAdapter(IdentifiableAdapter):
self._registered_identifiables[name] = definition self._registered_identifiables[name] = definition
def get_file(self, identifiable: Identifiable): def get_file(self, identifiable: Identifiable):
warnings.warn(DeprecationWarning("This function is depricated. Please do not use it.")) warnings.warn(DeprecationWarning("This function is deprecated. Please do not use it."))
# TODO is this needed for Identifiable? # TODO is this needed for Identifiable?
# or can we get rid of this function? # or can we get rid of this function?
if isinstance(identifiable, db.Entity): if isinstance(identifiable, db.Entity):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment