mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
59d054308c
Currently, the output type of a number of OutputParser's `parse` methods is `Any` when it can in fact be inferred. This PR makes BaseOutputParser use a generic type and fixes the output types of the following parsers: - `PydanticOutputParser` - `OutputFixingParser` - `RetryOutputParser` - `RetryWithErrorOutputParser` The output of the `StructuredOutputParser` is corrected from `BaseModel` to `Any` since there are no type guarantees provided by the parser. Fixes issue #2715 |
||
---|---|---|
.. | ||
__init__.py | ||
test_pydantic_parser.py | ||
test_regex_dict.py |