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
The use of isinstance() in check_type() method is OK; the use of isinstance() in execute() gives the following Pylance typing error:
{
"resource": "/home/verhaegs/eda/test/test_generic.py",
"owner": "_generated_diagnostic_collection_name_#2",
"code": {
"value": "reportGeneralTypeIssues",
"target": {
"$mid": 1,
"external": "https://github.com/microsoft/pylance-release/blob/main/DIAGNOSTIC_SEVERITY_RULES.md#diagnostic-severity-rules",
"path": "/microsoft/pylance-release/blob/main/DIAGNOSTIC_SEVERITY_RULES.md",
"scheme": "https",
"authority": "github.com",
"fragment": "diagnostic-severity-rules"
}
},
"severity": 8,
"message": "Second argument to \"isinstance\" must be a class or tuple of classes\n TypeVar or generic type with type arguments not allowed",
"source": "Pylance",
"startLineNumber": 16,
"startColumn": 28,
"endLineNumber": 16,
"endColumn": 44
}
The text was updated successfully, but these errors were encountered:
Environment data
Code Snippet
Expected behaviour
Not give a Pylance error
Actual behaviour
The use of
isinstance()
incheck_type()
method is OK; the use ofisinstance()
inexecute()
gives the following Pylance typing error:The text was updated successfully, but these errors were encountered: