diff --git a/.gitignore b/.gitignore index 39a57f4..71b9c0f 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,5 @@ Cargo.lock **/__pycache__ docs/source/generated docs/build + +venv diff --git a/build.rs b/build.rs index 236f970..dd1f633 100644 --- a/build.rs +++ b/build.rs @@ -1,10 +1,10 @@ use std::env; pub fn main() { - println!("cargo::rustc-check-cfg=cfg(pyi)"); +// println!("cargo::rustc-check-cfg=cfg(pyi)"); if let Ok(flag) = env::var("INCLUDE_PYI") { if flag == "1" || flag.to_lowercase() == "true" { println!("cargo:rustc-cfg=pyi"); } } -} \ No newline at end of file +} diff --git a/pyhornedowl/__init__.pyi b/pyhornedowl/__init__.pyi index 848a772..530d10b 100644 --- a/pyhornedowl/__init__.pyi +++ b/pyhornedowl/__init__.pyi @@ -4,7 +4,6 @@ from typing_extensions import deprecated import model - class PyIndexedOntology: """ Represents a loaded ontology. @@ -257,7 +256,7 @@ class PyIndexedOntology: """ ... - def get_ancestors(self, onto: PyIndexedOntology, child: str, iri_is_absolute: Optional[bool] = None) -> Set[str]: + def get_ancestors(self, child: str, iri_is_absolute: Optional[bool] = None) -> Set[str]: """ Gets all direct and indirect super classes of a class. """ diff --git a/src/model.rs b/src/model.rs index ff36077..32dbc9f 100644 --- a/src/model.rs +++ b/src/model.rs @@ -1,6 +1,6 @@ -use std::{borrow::Borrow, collections::BTreeSet, sync::Arc}; +use std::{borrow::Borrow, collections::{BTreeSet,hash_map::DefaultHasher}, sync::Arc}; use std::fmt::{Display, Write}; -use std::hash::{DefaultHasher, Hash, Hasher}; +use std::hash::{Hash, Hasher}; use horned_owl::model::ArcStr; use paste::paste;