Skip to content

Commit bd9a1cd

Browse files
pw-ppodhajskivoodoo11
authored andcommitted
conda 202306-pathway fix dependencies (#8111)
Co-authored-by: Jakub Kowalski <kuba@pathway.com> GitOrigin-RevId: da5a0db07819a89ca5477277df22c5df3da72eaf
1 parent 68b4224 commit bd9a1cd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

python/pathway/io/python/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def _is_finite(self) -> bool:
133133
return True
134134

135135
def next(self, **kwargs) -> None:
136-
"""Sends a message to the enigne.
136+
"""Sends a message to the engine.
137137
138138
The arguments should be compatible with the schema passed to :py:func:`~pathway.io.python.read`.
139139
Values for all fields should be passed to this method unless they have a default value

python/pathway/xpacks/llm/parsers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ async def __wrapped__(self, contents: bytes, **kwargs) -> list[tuple[str, dict]]
141141
removed if they are specific to a single element, e.g. `category_depth`.
142142
"""
143143
import unstructured.partition.auto
144+
from unstructured.documents.elements import Text
144145

145146
kwargs = {**self.kwargs, **kwargs}
146147

@@ -150,6 +151,7 @@ async def __wrapped__(self, contents: bytes, **kwargs) -> list[tuple[str, dict]]
150151

151152
post_processors = kwargs.pop("post_processors")
152153
for element in elements:
154+
assert isinstance(element, Text), "unsupported element type"
153155
for post_processor in post_processors:
154156
element.apply(post_processor)
155157

0 commit comments

Comments
 (0)