mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-05 13:06:03 +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:
@@ -27,7 +27,7 @@ class UnstructuredCHMLoader(UnstructuredFileLoader):
|
||||
def _get_elements(self) -> List:
|
||||
from unstructured.partition.html import partition_html
|
||||
|
||||
with CHMParser(self.file_path) as f:
|
||||
with CHMParser(self.file_path) as f: # type: ignore[arg-type]
|
||||
return [
|
||||
partition_html(text=item["content"], **self.unstructured_kwargs)
|
||||
for item in f.load_all()
|
||||
@@ -45,10 +45,10 @@ class CHMParser(object):
|
||||
self.file = chm.CHMFile()
|
||||
self.file.LoadCHM(path)
|
||||
|
||||
def __enter__(self):
|
||||
def __enter__(self): # type: ignore[no-untyped-def]
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc_value, traceback):
|
||||
def __exit__(self, exc_type, exc_value, traceback): # type: ignore[no-untyped-def]
|
||||
if self.file:
|
||||
self.file.CloseCHM()
|
||||
|
||||
|
Reference in New Issue
Block a user