Openpyxl literals like "BORDER_MEDIUM" throw "is unknown import symbol (reportGeneralTypeIssues)" #1432
Labels
typestub
Issue relating to our bundled type stubs
waiting for upstream
Waiting for upstream to release a fix
When borders are imported in a file, they would show error, but they are clearly defined in the openpyxl file.
The type annotation of the openpyxl file, shown in VSCode:
The actual code runs without issues.
Environment data
2021.6.1
3.0.7
Expected behaviour
No error should be shown
Actual behaviour
"BORDER_MEDIUM" is unknown import symbol Pylance(reportGeneralTypeIssues)
Logs
Code Snippet / Additional information
Import Statement:
Inside
openpyxl/styles/borders.py
:VSCode config:
"python.analysis.typeCheckingMode": "basic"
The text was updated successfully, but these errors were encountered: