Skip to content

Commit 5c00677

Browse files
committed
🐛 add self to non-static methods
1 parent 9e8a151 commit 5c00677

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ontolearner/base/ontology.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def _update_metrics_space(self, metrics_file_path: Path, metrics: OntologyMetric
372372
# Save updated metrics
373373
df.to_excel(metrics_file_path, index=False)
374374

375-
def is_valid_label(label: str) -> Any:
375+
def is_valid_label(self, label: str) -> Any:
376376
invalids = ['root', 'thing']
377377
if label.lower() in invalids:
378378
return None
@@ -522,7 +522,7 @@ def check_if_class(self, entity):
522522
return True
523523
return False
524524

525-
def _is_anonymous_id(label: str) -> bool:
525+
def _is_anonymous_id(self, label: str) -> bool:
526526
"""Check if a label represents an anonymous class identifier."""
527527
if not label:
528528
return True

0 commit comments

Comments
 (0)