mirror of
https://github.com/microsoft/pyright.git
synced 2024-09-11 16:06:39 +03:00
Added __qualname__ symbol to classes.
This commit is contained in:
parent
55f837e38a
commit
7e3b1a64c9
@ -593,6 +593,9 @@ export class ClassScopeAnalyzer extends SemanticAnalyzer {
|
||||
this._addSymbolToPermanentScope('__dict__', AnyType.create());
|
||||
this._addSymbolToPermanentScope('__doc__', ScopeUtils.getBuiltInObject(this._currentScope, 'str'));
|
||||
this._addSymbolToPermanentScope('__name__', ScopeUtils.getBuiltInObject(this._currentScope, 'str'));
|
||||
if (this._fileInfo.executionEnvironment.pythonVersion >= PythonVersion.V33) {
|
||||
this._addSymbolToPermanentScope('__qualname__', ScopeUtils.getBuiltInObject(this._currentScope, 'str'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user