Skip to content

Commit

Permalink
Fixing compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
b-gehrke committed Oct 21, 2024
1 parent 4a53378 commit 85f626d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ Cargo.lock
**/__pycache__
docs/source/generated
docs/build

venv
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
@@ -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");
}
}
}
}
3 changes: 1 addition & 2 deletions pyhornedowl/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ from typing_extensions import deprecated

import model


class PyIndexedOntology:
"""
Represents a loaded ontology.
Expand Down Expand Up @@ -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.
"""
Expand Down
4 changes: 2 additions & 2 deletions src/model.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 85f626d

Please sign in to comment.