Fixed a bug that causes warnings.deprecated not to work if the python version is 3.13. This was caused by recent changes to typeshed stubs.

This commit is contained in:
Eric Traut 2024-06-12 10:46:48 -07:00
parent b0cee14316
commit 6baa5b1368

View File

@ -298,7 +298,8 @@ export class SourceFile {
this._uri.pathEndsWith('stdlib/abc.pyi') ||
this._uri.pathEndsWith('stdlib/enum.pyi') ||
this._uri.pathEndsWith('stdlib/queue.pyi') ||
this._uri.pathEndsWith('stdlib/types.pyi')
this._uri.pathEndsWith('stdlib/types.pyi') ||
this._uri.pathEndsWith('stdlib/warnings.pyi')
) {
this._isBuiltInStubFile = true;
}