mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-15 06:26:12 +00:00
infra: add -p to mkdir in lint steps (#17013)
Previously, if this did not find a mypy cache then it wouldnt run this makes it always run adding mypy ignore comments with existing uncaught issues to unblock other prs --------- Co-authored-by: Erick Friis <erick@langchain.dev> Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
This commit is contained in:
@@ -95,12 +95,13 @@ class OntotextGraphDBGraph:
|
||||
|
||||
if local_file:
|
||||
ontology_schema_graph = self._load_ontology_schema_from_file(
|
||||
local_file, local_file_format
|
||||
local_file,
|
||||
local_file_format, # type: ignore[arg-type]
|
||||
)
|
||||
else:
|
||||
self._validate_user_query(query_ontology)
|
||||
self._validate_user_query(query_ontology) # type: ignore[arg-type]
|
||||
ontology_schema_graph = self._load_ontology_schema_with_query(
|
||||
query_ontology
|
||||
query_ontology # type: ignore[arg-type]
|
||||
)
|
||||
self.schema = ontology_schema_graph.serialize(format="turtle")
|
||||
|
||||
@@ -139,7 +140,7 @@ class OntotextGraphDBGraph:
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def _load_ontology_schema_from_file(local_file: str, local_file_format: str = None):
|
||||
def _load_ontology_schema_from_file(local_file: str, local_file_format: str = None): # type: ignore[no-untyped-def, assignment]
|
||||
"""
|
||||
Parse the ontology schema statements from the provided file
|
||||
"""
|
||||
@@ -176,7 +177,7 @@ class OntotextGraphDBGraph:
|
||||
"Invalid query type. Only CONSTRUCT queries are supported."
|
||||
)
|
||||
|
||||
def _load_ontology_schema_with_query(self, query: str):
|
||||
def _load_ontology_schema_with_query(self, query: str): # type: ignore[no-untyped-def]
|
||||
"""
|
||||
Execute the query for collecting the ontology schema statements
|
||||
"""
|
||||
|
Reference in New Issue
Block a user