Skip to content

Commit

Permalink
Fixed circular imports
Browse files Browse the repository at this point in the history
  • Loading branch information
alkidbaci committed Sep 9, 2024
1 parent 1afb0fa commit 4e30719
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions owlapy/abstracts/abstract_owl_ontology.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
from abc import ABCMeta, abstractmethod
from typing import Final, Iterable, Union, Optional
from typing import Final, Iterable, Union, Optional, TypeVar

from owlapy.class_expression import OWLClass
from owlapy.iri import IRI
from owlapy.owl_axiom import OWLEquivalentClassesAxiom, OWLClassAxiom, OWLDataPropertyDomainAxiom, \
OWLDataPropertyRangeAxiom, OWLObjectPropertyDomainAxiom, OWLObjectPropertyRangeAxiom, OWLAxiom
from owlapy.owl_individual import OWLNamedIndividual
from owlapy.owl_object import OWLObject
from owlapy.owl_ontology import _M, OWLOntologyID
from owlapy.owl_property import OWLDataProperty, OWLObjectProperty

_M = TypeVar('_M', bound='OWLOntologyManager') # noqa: F821
_OI = TypeVar('_OI', bound='OWLOntologyID') # noqa: F821


class OWLOntology(OWLObject, metaclass=ABCMeta):
"""Represents an OWL 2 Ontology in the OWL 2 specification.
Expand Down Expand Up @@ -136,7 +138,7 @@ def get_owl_ontology_manager(self) -> _M:
pass

@abstractmethod
def get_ontology_id(self) -> OWLOntologyID:
def get_ontology_id(self) -> _OI:
"""Gets the OWLOntologyID belonging to this object.
Returns:
Expand Down

0 comments on commit 4e30719

Please sign in to comment.