You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The instantiation of a class decorated with the @component decorator fails with a type check error. Also, the type checker does not recognize the parameters.
This seems related to the deprecation fo the is_greedy parameter, as it is the only change between this release and the previous one (2.7.0)
Error message Argument missing for parameter "cls"
Expected behavior
No type-check error.
To Reproduce
Type-check any pipeline instantiated with the library using Pyright
I can confirm this. Pyright complains. Basically all code with a component breaks the type check.
Running
pyright=1.1.390
python 3.12
julian-risch
added
P1
High priority, add to the next sprint
P2
Medium priority, add to the next sprint if no P1 available
and removed
P1
High priority, add to the next sprint
labels
Dec 12, 2024
Describe the bug
The instantiation of a class decorated with the
@component
decorator fails with a type check error. Also, the type checker does not recognize the parameters.This seems related to the deprecation fo the
is_greedy
parameter, as it is the only change between this release and the previous one (2.7.0)Error message
Argument missing for parameter "cls"
Expected behavior
No type-check error.
To Reproduce
Type-check any pipeline instantiated with the library using Pyright
FAQ Check
System:
The text was updated successfully, but these errors were encountered: