When creating a new notebook via Lightning and copying the example code from the README, Pyright shows issues with the abstract methods of the LitAPI base class.
The error occurs due to a parameter name mismatch in method overrides:
Method "setup" overrides class "LitAPI" in an incompatible manner Parameter 2 name mismatch: base parameter is named "devices", override parameter is named "device" Pyright[reportIncompatibleMethodOverride]
Steps to Reproduce
Open a new notebook in Lightning Studio.
Copy the example code from the README.
Observe the Pyright issues that appear for the LitAPI base class methods.
Expected Behavior
No Pyright issues should be present. Although this won't block users, it can cause confusion, especially for those new to the framework.
Environment
Lightning Studio
Pyright
Additional Context
Iād be happy to work on resolving this issue (Updating the README should do the job?)
š Bug Report
Description
When creating a new notebook via Lightning and copying the example code from the README, Pyright shows issues with the abstract methods of the
LitAPI
base class.The error occurs due to a parameter name mismatch in method overrides:
Steps to Reproduce
LitAPI
base class methods.Expected Behavior
No Pyright issues should be present. Although this won't block users, it can cause confusion, especially for those new to the framework.
Environment
Additional Context
Iād be happy to work on resolving this issue (Updating the README should do the job?)