You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/core/langchain_core/_api
Luca Dorigo f19229c564
core[patch]: fix beta, deprecated typing (#18877)
**Description:** 

While not technically incorrect, the TypeVar used for the `@beta`
decorator prevented pyright (and thus most vscode users) from correctly
seeing the types of functions/classes decorated with `@beta`.

This is in part due to a small bug in pyright
(https://github.com/microsoft/pyright/issues/7448 ) - however, the
`Type` bound in the typevar `C = TypeVar("C", Type, Callable)` is not
doing anything - classes are `Callables` by default, so by my
understanding binding to `Type` does not actually provide any more
safety - the modified annotation still works correctly for both
functions, properties, and classes.

---------

Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
Co-authored-by: Bagatur <baskaryan@gmail.com>
3 months ago
..
__init__.py core[patch], community[patch]: mark runnable context, lc load as beta (#15603) 6 months ago
beta_decorator.py core[patch]: fix beta, deprecated typing (#18877) 3 months ago
deprecation.py core[patch]: fix beta, deprecated typing (#18877) 3 months ago
internal.py Do not issue beta or deprecation warnings on internal calls (#15641) 6 months ago
path.py Separate out langchain_core package (#13577) 7 months ago