langchain/libs
Predrag Gruevski 47499c6db4
Avoid type: ignore suppression by adding mypy type hint. (#9881)
Mypy was not able to determine a good type for `type_to_loader_dict`,
since the values in the dict are functions whose return types are
related to each other in a complex way. One can see this by adding a
line like `reveal_type(type_to_loader_dict)` and running mypy, which
will get mypy to show what type it has inferred for that value.

Adding an explicit type hint to help out mypy avoids the need for a mypy
suppression and allows the code to type-check cleanly.
2023-08-28 17:53:33 -07:00
..
experimental Add conftest file to langchain experimental (#9886) 2023-08-28 17:52:16 -07:00
langchain Avoid type: ignore suppression by adding mypy type hint. (#9881) 2023-08-28 17:53:33 -07:00