mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-04 04:28:58 +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:
@@ -65,7 +65,7 @@ class AstraDBLoader(BaseLoader):
|
||||
return list(self.lazy_load())
|
||||
|
||||
def lazy_load(self) -> Iterator[Document]:
|
||||
queue = Queue(self.nb_prefetched)
|
||||
queue = Queue(self.nb_prefetched) # type: ignore[var-annotated]
|
||||
t = threading.Thread(target=self.fetch_results, args=(queue,))
|
||||
t.start()
|
||||
while True:
|
||||
@@ -95,7 +95,7 @@ class AstraDBLoader(BaseLoader):
|
||||
item = await run_in_executor(None, lambda it: next(it, done), iterator)
|
||||
if item is done:
|
||||
break
|
||||
yield item
|
||||
yield item # type: ignore[misc]
|
||||
return
|
||||
async_collection = await self.astra_env.async_astra_db.collection(
|
||||
self.collection_name
|
||||
@@ -116,13 +116,13 @@ class AstraDBLoader(BaseLoader):
|
||||
},
|
||||
)
|
||||
|
||||
def fetch_results(self, queue: Queue):
|
||||
def fetch_results(self, queue: Queue): # type: ignore[no-untyped-def]
|
||||
self.fetch_page_result(queue)
|
||||
while self.find_options.get("pageState"):
|
||||
self.fetch_page_result(queue)
|
||||
queue.put(None)
|
||||
|
||||
def fetch_page_result(self, queue: Queue):
|
||||
def fetch_page_result(self, queue: Queue): # type: ignore[no-untyped-def]
|
||||
res = self.collection.find(
|
||||
filter=self.filter,
|
||||
options=self.find_options,
|
||||
|
Reference in New Issue
Block a user