mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
47499c6db4
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. |
||
---|---|---|
.. | ||
experimental | ||
langchain |