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
python-can is not re-exporting symbols correctly. This causes Pylance to not provide Intellisense when using e.g. Bus class, and also warns about usage of private import:
"Bus" is not exported from module "can" Pylance[reportPrivateImportUsage]
I see that, but by adding the __all__, we'd kill two birds with one stone: Pleasing the type cheker + making from can import * do something more controlled.
Describe the bug
python-can
is not re-exporting symbols correctly. This causes Pylance to not provide Intellisense when using e.g. Bus class, and also warns about usage of private import:"Bus" is not exported from module "can" Pylance[reportPrivateImportUsage]
Link to webpage: reportPrivateImportUsage
To Reproduce
"python.analysis.typeCheckingMode": "basic"
Expected behavior
Symbols imported in package/init.py should be publicly available, and not trigger a private import usage warning.
For more context on Pylance stance on this issue, see e.g. microsoft/pylance-release#2953 (comment)
Additional context
OS and version: Windows 10 22H2 OS build 19045.2728
Python version: 3.10.2
python-can version: 4.1.0
python-can interface/s (if applicable):
Screenshot of warning(s)
The text was updated successfully, but these errors were encountered: