coc-pyright 1.1.282 → 1.1.284
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +995 -801
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -1375,14 +1375,14 @@ var require_lru_cache = __commonJS({
|
|
|
1375
1375
|
// node_modules/semver/classes/range.js
|
|
1376
1376
|
var require_range = __commonJS({
|
|
1377
1377
|
"node_modules/semver/classes/range.js"(exports, module2) {
|
|
1378
|
-
var
|
|
1378
|
+
var Range15 = class {
|
|
1379
1379
|
constructor(range, options) {
|
|
1380
1380
|
options = parseOptions(options);
|
|
1381
|
-
if (range instanceof
|
|
1381
|
+
if (range instanceof Range15) {
|
|
1382
1382
|
if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) {
|
|
1383
1383
|
return range;
|
|
1384
1384
|
} else {
|
|
1385
|
-
return new
|
|
1385
|
+
return new Range15(range.raw, options);
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
1388
|
if (range instanceof Comparator) {
|
|
@@ -1465,7 +1465,7 @@ var require_range = __commonJS({
|
|
|
1465
1465
|
return result;
|
|
1466
1466
|
}
|
|
1467
1467
|
intersects(range, options) {
|
|
1468
|
-
if (!(range instanceof
|
|
1468
|
+
if (!(range instanceof Range15)) {
|
|
1469
1469
|
throw new TypeError("a Range is required");
|
|
1470
1470
|
}
|
|
1471
1471
|
return this.set.some((thisComparators) => {
|
|
@@ -1497,7 +1497,7 @@ var require_range = __commonJS({
|
|
|
1497
1497
|
return false;
|
|
1498
1498
|
}
|
|
1499
1499
|
};
|
|
1500
|
-
module2.exports =
|
|
1500
|
+
module2.exports = Range15;
|
|
1501
1501
|
var LRU = require_lru_cache();
|
|
1502
1502
|
var cache = new LRU({ max: 1e3 });
|
|
1503
1503
|
var parseOptions = require_parse_options();
|
|
@@ -1806,12 +1806,12 @@ var require_comparator = __commonJS({
|
|
|
1806
1806
|
if (this.value === "") {
|
|
1807
1807
|
return true;
|
|
1808
1808
|
}
|
|
1809
|
-
return new
|
|
1809
|
+
return new Range15(comp.value, options).test(this.value);
|
|
1810
1810
|
} else if (comp.operator === "") {
|
|
1811
1811
|
if (comp.value === "") {
|
|
1812
1812
|
return true;
|
|
1813
1813
|
}
|
|
1814
|
-
return new
|
|
1814
|
+
return new Range15(this.value, options).test(comp.semver);
|
|
1815
1815
|
}
|
|
1816
1816
|
const sameDirectionIncreasing = (this.operator === ">=" || this.operator === ">") && (comp.operator === ">=" || comp.operator === ">");
|
|
1817
1817
|
const sameDirectionDecreasing = (this.operator === "<=" || this.operator === "<") && (comp.operator === "<=" || comp.operator === "<");
|
|
@@ -1828,17 +1828,17 @@ var require_comparator = __commonJS({
|
|
|
1828
1828
|
var cmp = require_cmp();
|
|
1829
1829
|
var debug = require_debug();
|
|
1830
1830
|
var SemVer2 = require_semver();
|
|
1831
|
-
var
|
|
1831
|
+
var Range15 = require_range();
|
|
1832
1832
|
}
|
|
1833
1833
|
});
|
|
1834
1834
|
|
|
1835
1835
|
// node_modules/semver/functions/satisfies.js
|
|
1836
1836
|
var require_satisfies = __commonJS({
|
|
1837
1837
|
"node_modules/semver/functions/satisfies.js"(exports, module2) {
|
|
1838
|
-
var
|
|
1838
|
+
var Range15 = require_range();
|
|
1839
1839
|
var satisfies = (version, range, options) => {
|
|
1840
1840
|
try {
|
|
1841
|
-
range = new
|
|
1841
|
+
range = new Range15(range, options);
|
|
1842
1842
|
} catch (er) {
|
|
1843
1843
|
return false;
|
|
1844
1844
|
}
|
|
@@ -1851,8 +1851,8 @@ var require_satisfies = __commonJS({
|
|
|
1851
1851
|
// node_modules/semver/ranges/to-comparators.js
|
|
1852
1852
|
var require_to_comparators = __commonJS({
|
|
1853
1853
|
"node_modules/semver/ranges/to-comparators.js"(exports, module2) {
|
|
1854
|
-
var
|
|
1855
|
-
var toComparators = (range, options) => new
|
|
1854
|
+
var Range15 = require_range();
|
|
1855
|
+
var toComparators = (range, options) => new Range15(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
1856
1856
|
module2.exports = toComparators;
|
|
1857
1857
|
}
|
|
1858
1858
|
});
|
|
@@ -1861,13 +1861,13 @@ var require_to_comparators = __commonJS({
|
|
|
1861
1861
|
var require_max_satisfying = __commonJS({
|
|
1862
1862
|
"node_modules/semver/ranges/max-satisfying.js"(exports, module2) {
|
|
1863
1863
|
var SemVer2 = require_semver();
|
|
1864
|
-
var
|
|
1864
|
+
var Range15 = require_range();
|
|
1865
1865
|
var maxSatisfying = (versions, range, options) => {
|
|
1866
1866
|
let max = null;
|
|
1867
1867
|
let maxSV = null;
|
|
1868
1868
|
let rangeObj = null;
|
|
1869
1869
|
try {
|
|
1870
|
-
rangeObj = new
|
|
1870
|
+
rangeObj = new Range15(range, options);
|
|
1871
1871
|
} catch (er) {
|
|
1872
1872
|
return null;
|
|
1873
1873
|
}
|
|
@@ -1889,13 +1889,13 @@ var require_max_satisfying = __commonJS({
|
|
|
1889
1889
|
var require_min_satisfying = __commonJS({
|
|
1890
1890
|
"node_modules/semver/ranges/min-satisfying.js"(exports, module2) {
|
|
1891
1891
|
var SemVer2 = require_semver();
|
|
1892
|
-
var
|
|
1892
|
+
var Range15 = require_range();
|
|
1893
1893
|
var minSatisfying = (versions, range, options) => {
|
|
1894
1894
|
let min = null;
|
|
1895
1895
|
let minSV = null;
|
|
1896
1896
|
let rangeObj = null;
|
|
1897
1897
|
try {
|
|
1898
|
-
rangeObj = new
|
|
1898
|
+
rangeObj = new Range15(range, options);
|
|
1899
1899
|
} catch (er) {
|
|
1900
1900
|
return null;
|
|
1901
1901
|
}
|
|
@@ -1917,10 +1917,10 @@ var require_min_satisfying = __commonJS({
|
|
|
1917
1917
|
var require_min_version = __commonJS({
|
|
1918
1918
|
"node_modules/semver/ranges/min-version.js"(exports, module2) {
|
|
1919
1919
|
var SemVer2 = require_semver();
|
|
1920
|
-
var
|
|
1920
|
+
var Range15 = require_range();
|
|
1921
1921
|
var gt = require_gt();
|
|
1922
1922
|
var minVersion = (range, loose) => {
|
|
1923
|
-
range = new
|
|
1923
|
+
range = new Range15(range, loose);
|
|
1924
1924
|
let minver = new SemVer2("0.0.0");
|
|
1925
1925
|
if (range.test(minver)) {
|
|
1926
1926
|
return minver;
|
|
@@ -1972,10 +1972,10 @@ var require_min_version = __commonJS({
|
|
|
1972
1972
|
// node_modules/semver/ranges/valid.js
|
|
1973
1973
|
var require_valid2 = __commonJS({
|
|
1974
1974
|
"node_modules/semver/ranges/valid.js"(exports, module2) {
|
|
1975
|
-
var
|
|
1975
|
+
var Range15 = require_range();
|
|
1976
1976
|
var validRange = (range, options) => {
|
|
1977
1977
|
try {
|
|
1978
|
-
return new
|
|
1978
|
+
return new Range15(range, options).range || "*";
|
|
1979
1979
|
} catch (er) {
|
|
1980
1980
|
return null;
|
|
1981
1981
|
}
|
|
@@ -1990,7 +1990,7 @@ var require_outside = __commonJS({
|
|
|
1990
1990
|
var SemVer2 = require_semver();
|
|
1991
1991
|
var Comparator = require_comparator();
|
|
1992
1992
|
var { ANY } = Comparator;
|
|
1993
|
-
var
|
|
1993
|
+
var Range15 = require_range();
|
|
1994
1994
|
var satisfies = require_satisfies();
|
|
1995
1995
|
var gt = require_gt();
|
|
1996
1996
|
var lt2 = require_lt();
|
|
@@ -1998,7 +1998,7 @@ var require_outside = __commonJS({
|
|
|
1998
1998
|
var gte = require_gte();
|
|
1999
1999
|
var outside = (version, range, hilo, options) => {
|
|
2000
2000
|
version = new SemVer2(version, options);
|
|
2001
|
-
range = new
|
|
2001
|
+
range = new Range15(range, options);
|
|
2002
2002
|
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
2003
2003
|
switch (hilo) {
|
|
2004
2004
|
case ">":
|
|
@@ -2073,10 +2073,10 @@ var require_ltr = __commonJS({
|
|
|
2073
2073
|
// node_modules/semver/ranges/intersects.js
|
|
2074
2074
|
var require_intersects = __commonJS({
|
|
2075
2075
|
"node_modules/semver/ranges/intersects.js"(exports, module2) {
|
|
2076
|
-
var
|
|
2076
|
+
var Range15 = require_range();
|
|
2077
2077
|
var intersects = (r1, r2, options) => {
|
|
2078
|
-
r1 = new
|
|
2079
|
-
r2 = new
|
|
2078
|
+
r1 = new Range15(r1, options);
|
|
2079
|
+
r2 = new Range15(r2, options);
|
|
2080
2080
|
return r1.intersects(r2);
|
|
2081
2081
|
};
|
|
2082
2082
|
module2.exports = intersects;
|
|
@@ -2135,7 +2135,7 @@ var require_simplify = __commonJS({
|
|
|
2135
2135
|
// node_modules/semver/ranges/subset.js
|
|
2136
2136
|
var require_subset = __commonJS({
|
|
2137
2137
|
"node_modules/semver/ranges/subset.js"(exports, module2) {
|
|
2138
|
-
var
|
|
2138
|
+
var Range15 = require_range();
|
|
2139
2139
|
var Comparator = require_comparator();
|
|
2140
2140
|
var { ANY } = Comparator;
|
|
2141
2141
|
var satisfies = require_satisfies();
|
|
@@ -2144,8 +2144,8 @@ var require_subset = __commonJS({
|
|
|
2144
2144
|
if (sub === dom) {
|
|
2145
2145
|
return true;
|
|
2146
2146
|
}
|
|
2147
|
-
sub = new
|
|
2148
|
-
dom = new
|
|
2147
|
+
sub = new Range15(sub, options);
|
|
2148
|
+
dom = new Range15(dom, options);
|
|
2149
2149
|
let sawNonNull = false;
|
|
2150
2150
|
OUTER:
|
|
2151
2151
|
for (const simpleSub of sub.set) {
|
|
@@ -5927,18 +5927,18 @@ var require_textRange = __commonJS({
|
|
|
5927
5927
|
}
|
|
5928
5928
|
Position11.print = print;
|
|
5929
5929
|
})(Position10 = exports.Position || (exports.Position = {}));
|
|
5930
|
-
var
|
|
5931
|
-
(function(
|
|
5930
|
+
var Range15;
|
|
5931
|
+
(function(Range16) {
|
|
5932
5932
|
function is(value) {
|
|
5933
5933
|
const candidate = value;
|
|
5934
5934
|
return candidate && candidate.start !== void 0 && candidate.end !== void 0;
|
|
5935
5935
|
}
|
|
5936
|
-
|
|
5936
|
+
Range16.is = is;
|
|
5937
5937
|
function print(value) {
|
|
5938
5938
|
return `${Position10.print(value.start)}-${Position10.print(value.end)}`;
|
|
5939
5939
|
}
|
|
5940
|
-
|
|
5941
|
-
})(
|
|
5940
|
+
Range16.print = print;
|
|
5941
|
+
})(Range15 = exports.Range || (exports.Range = {}));
|
|
5942
5942
|
function comparePositions(a, b) {
|
|
5943
5943
|
if (a.line < b.line) {
|
|
5944
5944
|
return -1;
|
|
@@ -6053,18 +6053,13 @@ var require_positionUtils = __commonJS({
|
|
|
6053
6053
|
character: 0
|
|
6054
6054
|
};
|
|
6055
6055
|
}
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
offset = lines.end - 1;
|
|
6059
|
-
offsetAdjustment = 1;
|
|
6060
|
-
}
|
|
6061
|
-
const itemIndex = lines.getItemContaining(offset);
|
|
6062
|
-
(0, debug_1.assert)(itemIndex >= 0 && itemIndex <= lines.length);
|
|
6056
|
+
const itemIndex = offset >= lines.end ? lines.count - 1 : lines.getItemContaining(offset);
|
|
6057
|
+
(0, debug_1.assert)(itemIndex >= 0 && itemIndex <= lines.count);
|
|
6063
6058
|
const lineRange = lines.getItemAt(itemIndex);
|
|
6064
6059
|
(0, debug_1.assert)(lineRange !== void 0);
|
|
6065
6060
|
return {
|
|
6066
6061
|
line: itemIndex,
|
|
6067
|
-
character: offset - lineRange.start
|
|
6062
|
+
character: Math.max(0, Math.min(lineRange.length, offset - lineRange.start))
|
|
6068
6063
|
};
|
|
6069
6064
|
}
|
|
6070
6065
|
exports.convertOffsetToPosition = convertOffsetToPosition;
|
|
@@ -10088,7 +10083,7 @@ var require_diagnostic = __commonJS({
|
|
|
10088
10083
|
}
|
|
10089
10084
|
}
|
|
10090
10085
|
exports.convertLevelToCategory = convertLevelToCategory;
|
|
10091
|
-
var
|
|
10086
|
+
var Diagnostic5 = class {
|
|
10092
10087
|
constructor(category, message, range) {
|
|
10093
10088
|
this.category = category;
|
|
10094
10089
|
this.message = message;
|
|
@@ -10118,7 +10113,7 @@ var require_diagnostic = __commonJS({
|
|
|
10118
10113
|
return this._relatedInfo;
|
|
10119
10114
|
}
|
|
10120
10115
|
};
|
|
10121
|
-
exports.Diagnostic =
|
|
10116
|
+
exports.Diagnostic = Diagnostic5;
|
|
10122
10117
|
var DiagnosticAddendum = class {
|
|
10123
10118
|
constructor() {
|
|
10124
10119
|
this._messages = [];
|
|
@@ -11710,7 +11705,6 @@ var require_messageReader = __commonJS({
|
|
|
11710
11705
|
var ResolvedMessageReaderOptions;
|
|
11711
11706
|
(function(ResolvedMessageReaderOptions2) {
|
|
11712
11707
|
function fromOptions(options) {
|
|
11713
|
-
var _a;
|
|
11714
11708
|
let charset;
|
|
11715
11709
|
let result;
|
|
11716
11710
|
let contentDecoder;
|
|
@@ -11718,9 +11712,9 @@ var require_messageReader = __commonJS({
|
|
|
11718
11712
|
let contentTypeDecoder;
|
|
11719
11713
|
const contentTypeDecoders = /* @__PURE__ */ new Map();
|
|
11720
11714
|
if (options === void 0 || typeof options === "string") {
|
|
11721
|
-
charset = options
|
|
11715
|
+
charset = options ?? "utf-8";
|
|
11722
11716
|
} else {
|
|
11723
|
-
charset =
|
|
11717
|
+
charset = options.charset ?? "utf-8";
|
|
11724
11718
|
if (options.contentDecoder !== void 0) {
|
|
11725
11719
|
contentDecoder = options.contentDecoder;
|
|
11726
11720
|
contentDecoders.set(contentDecoder.name, contentDecoder);
|
|
@@ -11963,11 +11957,10 @@ var require_messageWriter = __commonJS({
|
|
|
11963
11957
|
var ResolvedMessageWriterOptions;
|
|
11964
11958
|
(function(ResolvedMessageWriterOptions2) {
|
|
11965
11959
|
function fromOptions(options) {
|
|
11966
|
-
var _a, _b;
|
|
11967
11960
|
if (options === void 0 || typeof options === "string") {
|
|
11968
|
-
return { charset: options
|
|
11961
|
+
return { charset: options ?? "utf-8", contentTypeEncoder: (0, ral_1.default)().applicationJson.encoder };
|
|
11969
11962
|
} else {
|
|
11970
|
-
return { charset:
|
|
11963
|
+
return { charset: options.charset ?? "utf-8", contentEncoder: options.contentEncoder, contentTypeEncoder: options.contentTypeEncoder ?? (0, ral_1.default)().applicationJson.encoder };
|
|
11971
11964
|
}
|
|
11972
11965
|
}
|
|
11973
11966
|
ResolvedMessageWriterOptions2.fromOptions = fromOptions;
|
|
@@ -12515,7 +12508,6 @@ var require_connection = __commonJS({
|
|
|
12515
12508
|
}
|
|
12516
12509
|
};
|
|
12517
12510
|
function handleRequest(requestMessage) {
|
|
12518
|
-
var _a;
|
|
12519
12511
|
if (isDisposed()) {
|
|
12520
12512
|
return;
|
|
12521
12513
|
}
|
|
@@ -12563,7 +12555,7 @@ var require_connection = __commonJS({
|
|
|
12563
12555
|
}
|
|
12564
12556
|
const startTime = Date.now();
|
|
12565
12557
|
if (requestHandler || starRequestHandler) {
|
|
12566
|
-
const tokenKey =
|
|
12558
|
+
const tokenKey = requestMessage.id ?? String(Date.now());
|
|
12567
12559
|
const cancellationSource = cancellationStrategy.receiver.createCancellationTokenSource(tokenKey);
|
|
12568
12560
|
if (requestMessage.id !== null && knownCanceledRequests.has(requestMessage.id)) {
|
|
12569
12561
|
cancellationSource.cancel();
|
|
@@ -14059,7 +14051,7 @@ var init_main2 = __esm({
|
|
|
14059
14051
|
}
|
|
14060
14052
|
Position10.is = is;
|
|
14061
14053
|
})(Position || (Position = {}));
|
|
14062
|
-
(function(
|
|
14054
|
+
(function(Range15) {
|
|
14063
14055
|
function create(one, two, three, four) {
|
|
14064
14056
|
if (Is.uinteger(one) && Is.uinteger(two) && Is.uinteger(three) && Is.uinteger(four)) {
|
|
14065
14057
|
return { start: Position.create(one, two), end: Position.create(three, four) };
|
|
@@ -14069,12 +14061,12 @@ var init_main2 = __esm({
|
|
|
14069
14061
|
throw new Error("Range#create called with invalid arguments[".concat(one, ", ").concat(two, ", ").concat(three, ", ").concat(four, "]"));
|
|
14070
14062
|
}
|
|
14071
14063
|
}
|
|
14072
|
-
|
|
14064
|
+
Range15.create = create;
|
|
14073
14065
|
function is(value) {
|
|
14074
14066
|
var candidate = value;
|
|
14075
14067
|
return Is.objectLiteral(candidate) && Position.is(candidate.start) && Position.is(candidate.end);
|
|
14076
14068
|
}
|
|
14077
|
-
|
|
14069
|
+
Range15.is = is;
|
|
14078
14070
|
})(Range || (Range = {}));
|
|
14079
14071
|
(function(Location2) {
|
|
14080
14072
|
function create(uri, range) {
|
|
@@ -14195,9 +14187,9 @@ var init_main2 = __esm({
|
|
|
14195
14187
|
DiagnosticSeverity3.Information = 3;
|
|
14196
14188
|
DiagnosticSeverity3.Hint = 4;
|
|
14197
14189
|
})(DiagnosticSeverity || (DiagnosticSeverity = {}));
|
|
14198
|
-
(function(
|
|
14199
|
-
|
|
14200
|
-
|
|
14190
|
+
(function(DiagnosticTag3) {
|
|
14191
|
+
DiagnosticTag3.Unnecessary = 1;
|
|
14192
|
+
DiagnosticTag3.Deprecated = 2;
|
|
14201
14193
|
})(DiagnosticTag || (DiagnosticTag = {}));
|
|
14202
14194
|
(function(CodeDescription2) {
|
|
14203
14195
|
function is(value) {
|
|
@@ -14206,7 +14198,7 @@ var init_main2 = __esm({
|
|
|
14206
14198
|
}
|
|
14207
14199
|
CodeDescription2.is = is;
|
|
14208
14200
|
})(CodeDescription || (CodeDescription = {}));
|
|
14209
|
-
(function(
|
|
14201
|
+
(function(Diagnostic5) {
|
|
14210
14202
|
function create(range, message, severity, code, source, relatedInformation) {
|
|
14211
14203
|
var result = { range, message };
|
|
14212
14204
|
if (Is.defined(severity)) {
|
|
@@ -14223,13 +14215,13 @@ var init_main2 = __esm({
|
|
|
14223
14215
|
}
|
|
14224
14216
|
return result;
|
|
14225
14217
|
}
|
|
14226
|
-
|
|
14218
|
+
Diagnostic5.create = create;
|
|
14227
14219
|
function is(value) {
|
|
14228
14220
|
var _a;
|
|
14229
14221
|
var candidate = value;
|
|
14230
14222
|
return Is.defined(candidate) && Range.is(candidate.range) && Is.string(candidate.message) && (Is.number(candidate.severity) || Is.undefined(candidate.severity)) && (Is.integer(candidate.code) || Is.string(candidate.code) || Is.undefined(candidate.code)) && (Is.undefined(candidate.codeDescription) || Is.string((_a = candidate.codeDescription) === null || _a === void 0 ? void 0 : _a.href)) && (Is.string(candidate.source) || Is.undefined(candidate.source)) && (Is.undefined(candidate.relatedInformation) || Is.typedArray(candidate.relatedInformation, DiagnosticRelatedInformation.is));
|
|
14231
14223
|
}
|
|
14232
|
-
|
|
14224
|
+
Diagnostic5.is = is;
|
|
14233
14225
|
})(Diagnostic || (Diagnostic = {}));
|
|
14234
14226
|
(function(Command2) {
|
|
14235
14227
|
function create(title, command) {
|
|
@@ -14250,24 +14242,24 @@ var init_main2 = __esm({
|
|
|
14250
14242
|
}
|
|
14251
14243
|
Command2.is = is;
|
|
14252
14244
|
})(Command || (Command = {}));
|
|
14253
|
-
(function(
|
|
14245
|
+
(function(TextEdit10) {
|
|
14254
14246
|
function replace(range, newText) {
|
|
14255
14247
|
return { range, newText };
|
|
14256
14248
|
}
|
|
14257
|
-
|
|
14249
|
+
TextEdit10.replace = replace;
|
|
14258
14250
|
function insert(position, newText) {
|
|
14259
14251
|
return { range: { start: position, end: position }, newText };
|
|
14260
14252
|
}
|
|
14261
|
-
|
|
14253
|
+
TextEdit10.insert = insert;
|
|
14262
14254
|
function del(range) {
|
|
14263
14255
|
return { range, newText: "" };
|
|
14264
14256
|
}
|
|
14265
|
-
|
|
14257
|
+
TextEdit10.del = del;
|
|
14266
14258
|
function is(value) {
|
|
14267
14259
|
var candidate = value;
|
|
14268
14260
|
return Is.objectLiteral(candidate) && Is.string(candidate.newText) && Range.is(candidate.range);
|
|
14269
14261
|
}
|
|
14270
|
-
|
|
14262
|
+
TextEdit10.is = is;
|
|
14271
14263
|
})(TextEdit || (TextEdit = {}));
|
|
14272
14264
|
(function(ChangeAnnotation2) {
|
|
14273
14265
|
function create(label, needsConfirmation, description) {
|
|
@@ -14388,7 +14380,7 @@ var init_main2 = __esm({
|
|
|
14388
14380
|
}
|
|
14389
14381
|
DeleteFile2.is = is;
|
|
14390
14382
|
})(DeleteFile || (DeleteFile = {}));
|
|
14391
|
-
(function(
|
|
14383
|
+
(function(WorkspaceEdit3) {
|
|
14392
14384
|
function is(value) {
|
|
14393
14385
|
var candidate = value;
|
|
14394
14386
|
return candidate && (candidate.changes !== void 0 || candidate.documentChanges !== void 0) && (candidate.documentChanges === void 0 || candidate.documentChanges.every(function(change) {
|
|
@@ -14399,7 +14391,7 @@ var init_main2 = __esm({
|
|
|
14399
14391
|
}
|
|
14400
14392
|
}));
|
|
14401
14393
|
}
|
|
14402
|
-
|
|
14394
|
+
WorkspaceEdit3.is = is;
|
|
14403
14395
|
})(WorkspaceEdit || (WorkspaceEdit = {}));
|
|
14404
14396
|
TextEditChangeImpl = function() {
|
|
14405
14397
|
function TextEditChangeImpl2(edits, changeAnnotations) {
|
|
@@ -14934,16 +14926,16 @@ var init_main2 = __esm({
|
|
|
14934
14926
|
}
|
|
14935
14927
|
DocumentSymbol2.is = is;
|
|
14936
14928
|
})(DocumentSymbol || (DocumentSymbol = {}));
|
|
14937
|
-
(function(
|
|
14938
|
-
|
|
14939
|
-
|
|
14940
|
-
|
|
14941
|
-
|
|
14942
|
-
|
|
14943
|
-
|
|
14944
|
-
|
|
14945
|
-
|
|
14946
|
-
|
|
14929
|
+
(function(CodeActionKind4) {
|
|
14930
|
+
CodeActionKind4.Empty = "";
|
|
14931
|
+
CodeActionKind4.QuickFix = "quickfix";
|
|
14932
|
+
CodeActionKind4.Refactor = "refactor";
|
|
14933
|
+
CodeActionKind4.RefactorExtract = "refactor.extract";
|
|
14934
|
+
CodeActionKind4.RefactorInline = "refactor.inline";
|
|
14935
|
+
CodeActionKind4.RefactorRewrite = "refactor.rewrite";
|
|
14936
|
+
CodeActionKind4.Source = "source";
|
|
14937
|
+
CodeActionKind4.SourceOrganizeImports = "source.organizeImports";
|
|
14938
|
+
CodeActionKind4.SourceFixAll = "source.fixAll";
|
|
14947
14939
|
})(CodeActionKind || (CodeActionKind = {}));
|
|
14948
14940
|
(function(CodeActionTriggerKind2) {
|
|
14949
14941
|
CodeActionTriggerKind2.Invoked = 1;
|
|
@@ -20062,10 +20054,13 @@ var require_pathUtils = __commonJS({
|
|
|
20062
20054
|
exports.isFile = isFile;
|
|
20063
20055
|
function tryStat(fs6, path13) {
|
|
20064
20056
|
try {
|
|
20065
|
-
|
|
20057
|
+
if (fs6.existsSync(path13)) {
|
|
20058
|
+
return fs6.statSync(path13);
|
|
20059
|
+
}
|
|
20066
20060
|
} catch (e) {
|
|
20067
20061
|
return void 0;
|
|
20068
20062
|
}
|
|
20063
|
+
return void 0;
|
|
20069
20064
|
}
|
|
20070
20065
|
exports.tryStat = tryStat;
|
|
20071
20066
|
function tryRealpath(fs6, path13) {
|
|
@@ -20586,6 +20581,7 @@ var require_diagnosticRules = __commonJS({
|
|
|
20586
20581
|
DiagnosticRule2["strictListInference"] = "strictListInference";
|
|
20587
20582
|
DiagnosticRule2["strictSetInference"] = "strictSetInference";
|
|
20588
20583
|
DiagnosticRule2["strictDictionaryInference"] = "strictDictionaryInference";
|
|
20584
|
+
DiagnosticRule2["analyzeUnannotatedFunctions"] = "analyzeUnannotatedFunctions";
|
|
20589
20585
|
DiagnosticRule2["strictParameterNoneValue"] = "strictParameterNoneValue";
|
|
20590
20586
|
DiagnosticRule2["enableTypeIgnoreComments"] = "enableTypeIgnoreComments";
|
|
20591
20587
|
DiagnosticRule2["reportGeneralTypeIssues"] = "reportGeneralTypeIssues";
|
|
@@ -20783,6 +20779,7 @@ var require_configOptions = __commonJS({
|
|
|
20783
20779
|
diagnosticRules_1.DiagnosticRule.strictListInference,
|
|
20784
20780
|
diagnosticRules_1.DiagnosticRule.strictSetInference,
|
|
20785
20781
|
diagnosticRules_1.DiagnosticRule.strictDictionaryInference,
|
|
20782
|
+
diagnosticRules_1.DiagnosticRule.analyzeUnannotatedFunctions,
|
|
20786
20783
|
diagnosticRules_1.DiagnosticRule.strictParameterNoneValue
|
|
20787
20784
|
];
|
|
20788
20785
|
if (includeNonOverridable) {
|
|
@@ -20872,6 +20869,7 @@ var require_configOptions = __commonJS({
|
|
|
20872
20869
|
strictListInference: false,
|
|
20873
20870
|
strictSetInference: false,
|
|
20874
20871
|
strictDictionaryInference: false,
|
|
20872
|
+
analyzeUnannotatedFunctions: true,
|
|
20875
20873
|
strictParameterNoneValue: true,
|
|
20876
20874
|
enableTypeIgnoreComments: true,
|
|
20877
20875
|
reportGeneralTypeIssues: "none",
|
|
@@ -20950,6 +20948,7 @@ var require_configOptions = __commonJS({
|
|
|
20950
20948
|
strictListInference: false,
|
|
20951
20949
|
strictSetInference: false,
|
|
20952
20950
|
strictDictionaryInference: false,
|
|
20951
|
+
analyzeUnannotatedFunctions: true,
|
|
20953
20952
|
strictParameterNoneValue: true,
|
|
20954
20953
|
enableTypeIgnoreComments: true,
|
|
20955
20954
|
reportGeneralTypeIssues: "error",
|
|
@@ -21028,6 +21027,7 @@ var require_configOptions = __commonJS({
|
|
|
21028
21027
|
strictListInference: true,
|
|
21029
21028
|
strictSetInference: true,
|
|
21030
21029
|
strictDictionaryInference: true,
|
|
21030
|
+
analyzeUnannotatedFunctions: true,
|
|
21031
21031
|
strictParameterNoneValue: true,
|
|
21032
21032
|
enableTypeIgnoreComments: true,
|
|
21033
21033
|
reportGeneralTypeIssues: "error",
|
|
@@ -21108,7 +21108,6 @@ var require_configOptions = __commonJS({
|
|
|
21108
21108
|
this.logTypeEvaluationTime = false;
|
|
21109
21109
|
this.typeEvaluationTimeThreshold = 50;
|
|
21110
21110
|
this.initializedFromJson = false;
|
|
21111
|
-
this.analyzeUnannotatedFunctions = true;
|
|
21112
21111
|
this.executionEnvironments = [];
|
|
21113
21112
|
this.projectRoot = projectRoot;
|
|
21114
21113
|
this.typeCheckingMode = typeCheckingMode;
|
|
@@ -22679,13 +22678,14 @@ var require_docStringConversion = __commonJS({
|
|
|
22679
22678
|
this._eatLine();
|
|
22680
22679
|
return;
|
|
22681
22680
|
}
|
|
22682
|
-
|
|
22681
|
+
const prev = this._lineAt(this._lineNum - 1);
|
|
22682
|
+
if (this._currentLineIsOutsideBlock() && _isUndefinedOrWhitespace(prev)) {
|
|
22683
22683
|
this._trimOutputAndAppendLine("```");
|
|
22684
22684
|
this._appendLine();
|
|
22685
22685
|
this._popState();
|
|
22686
22686
|
return;
|
|
22687
22687
|
}
|
|
22688
|
-
this._appendLine(this.
|
|
22688
|
+
this._appendLine(this._currentLine());
|
|
22689
22689
|
this._eatLine();
|
|
22690
22690
|
}
|
|
22691
22691
|
_parseLiteralBlockSingleLine() {
|
|
@@ -23767,6 +23767,7 @@ var require_types = __commonJS({
|
|
|
23767
23767
|
category: specEntry.category,
|
|
23768
23768
|
name: specEntry.name,
|
|
23769
23769
|
hasDefault: specEntry.hasDefault,
|
|
23770
|
+
defaultValueExpression: specEntry.defaultValueExpression,
|
|
23770
23771
|
isNameSynthesized: specEntry.isNameSynthesized,
|
|
23771
23772
|
hasDeclaredType: true,
|
|
23772
23773
|
type: specEntry.type
|
|
@@ -23828,6 +23829,7 @@ var require_types = __commonJS({
|
|
|
23828
23829
|
category: specEntry.category,
|
|
23829
23830
|
name: specEntry.name,
|
|
23830
23831
|
hasDefault: specEntry.hasDefault,
|
|
23832
|
+
defaultValueExpression: specEntry.defaultValueExpression,
|
|
23831
23833
|
isNameSynthesized: specEntry.isNameSynthesized,
|
|
23832
23834
|
hasDeclaredType: true,
|
|
23833
23835
|
type: specEntry.type
|
|
@@ -24186,7 +24188,7 @@ var require_types = __commonJS({
|
|
|
24186
24188
|
}
|
|
24187
24189
|
}
|
|
24188
24190
|
UnionType2.addType = addType;
|
|
24189
|
-
function containsType(unionType, subtype, recursionCount = 0) {
|
|
24191
|
+
function containsType(unionType, subtype, exclusionSet, recursionCount = 0) {
|
|
24190
24192
|
if (isClassInstance(subtype) && subtype.condition === void 0 && subtype.literalValue !== void 0) {
|
|
24191
24193
|
if (ClassType.isBuiltIn(subtype, "str") && unionType.literalStrMap !== void 0) {
|
|
24192
24194
|
return unionType.literalStrMap.has(subtype.literalValue);
|
|
@@ -24194,7 +24196,17 @@ var require_types = __commonJS({
|
|
|
24194
24196
|
return unionType.literalIntMap.has(subtype.literalValue);
|
|
24195
24197
|
}
|
|
24196
24198
|
}
|
|
24197
|
-
|
|
24199
|
+
const foundIndex = unionType.subtypes.findIndex((t, i) => {
|
|
24200
|
+
if (exclusionSet === null || exclusionSet === void 0 ? void 0 : exclusionSet.has(i)) {
|
|
24201
|
+
return false;
|
|
24202
|
+
}
|
|
24203
|
+
return isTypeSame(t, subtype, {}, recursionCount);
|
|
24204
|
+
});
|
|
24205
|
+
if (foundIndex < 0) {
|
|
24206
|
+
return false;
|
|
24207
|
+
}
|
|
24208
|
+
exclusionSet === null || exclusionSet === void 0 ? void 0 : exclusionSet.add(foundIndex);
|
|
24209
|
+
return true;
|
|
24198
24210
|
}
|
|
24199
24211
|
UnionType2.containsType = containsType;
|
|
24200
24212
|
function addTypeAliasSource(unionType, typeAliasSource) {
|
|
@@ -24616,7 +24628,8 @@ var require_types = __commonJS({
|
|
|
24616
24628
|
if (subtypes1.length !== subtypes2.length) {
|
|
24617
24629
|
return false;
|
|
24618
24630
|
}
|
|
24619
|
-
|
|
24631
|
+
const exclusionSet = /* @__PURE__ */ new Set();
|
|
24632
|
+
return findSubtype(type1, (subtype) => !UnionType.containsType(unionType2, subtype, exclusionSet, recursionCount)) === void 0;
|
|
24620
24633
|
}
|
|
24621
24634
|
case 10: {
|
|
24622
24635
|
const type2TypeVar = type2;
|
|
@@ -25987,7 +26000,7 @@ var require_typeUtils = __commonJS({
|
|
|
25987
26000
|
}
|
|
25988
26001
|
exports.isTupleClass = isTupleClass;
|
|
25989
26002
|
function isUnboundedTupleClass(type) {
|
|
25990
|
-
return type.tupleTypeArguments && type.tupleTypeArguments.some((t) => t.isUnbounded);
|
|
26003
|
+
return type.tupleTypeArguments && type.tupleTypeArguments.some((t) => t.isUnbounded || (0, types_1.isUnpackedVariadicTypeVar)(t.type));
|
|
25991
26004
|
}
|
|
25992
26005
|
exports.isUnboundedTupleClass = isUnboundedTupleClass;
|
|
25993
26006
|
function partiallySpecializeType(type, contextClassType, selfClass, typeClassType) {
|
|
@@ -26408,6 +26421,7 @@ var require_typeUtils = __commonJS({
|
|
|
26408
26421
|
category: param.category,
|
|
26409
26422
|
name: param.name,
|
|
26410
26423
|
hasDefault: !!param.hasDefault,
|
|
26424
|
+
defaultValueExpression: param.defaultValueExpression,
|
|
26411
26425
|
isNameSynthesized: param.isNameSynthesized,
|
|
26412
26426
|
type: types_1.FunctionType.getEffectiveParameterType(typeArgFunctionType, paramIndex)
|
|
26413
26427
|
});
|
|
@@ -27099,6 +27113,7 @@ var require_typeUtils = __commonJS({
|
|
|
27099
27113
|
category: entry.category,
|
|
27100
27114
|
name: entry.name,
|
|
27101
27115
|
hasDefault: entry.hasDefault,
|
|
27116
|
+
defaultValueExpression: entry.defaultValueExpression,
|
|
27102
27117
|
isNameSynthesized: entry.isNameSynthesized,
|
|
27103
27118
|
hasDeclaredType: true,
|
|
27104
27119
|
type: entry.type
|
|
@@ -28175,7 +28190,6 @@ var require_package_nls_en_us = __commonJS({
|
|
|
28175
28190
|
declaredReturnTypeUnknown: "Declared return type is unknown",
|
|
28176
28191
|
defaultValueContainsCall: "Function calls and mutable objects not allowed within parameter default value expression",
|
|
28177
28192
|
defaultValueNotAllowed: 'Parameter with "*" or "**" cannot have default value',
|
|
28178
|
-
defaultValueNotEllipsis: 'Default values in stub files should be specified as "..."',
|
|
28179
28193
|
deprecatedType: 'This type is deprecated as of Python {version}; use "{replacement}" instead',
|
|
28180
28194
|
delTargetExpr: "Expression cannot be deleted",
|
|
28181
28195
|
dictExpandIllegalInComprehension: "Dictionary expansion not allowed in comprehension",
|
|
@@ -28557,6 +28571,7 @@ var require_package_nls_en_us = __commonJS({
|
|
|
28557
28571
|
unaccessedImport: 'Import "{name}" is not accessed',
|
|
28558
28572
|
unaccessedSymbol: '"{name}" is not accessed',
|
|
28559
28573
|
unaccessedVariable: 'Variable "{name}" is not accessed',
|
|
28574
|
+
unannotatedFunctionSkipped: 'Analysis of function "{name}" is skipped because it unannotated',
|
|
28560
28575
|
unexpectedAsyncToken: 'Expected "def", "with" or "for" to follow "async"',
|
|
28561
28576
|
unexpectedExprToken: "Unexpected token at end of expression",
|
|
28562
28577
|
unexpectedIndent: "Unexpected indentation",
|
|
@@ -28943,535 +28958,535 @@ var require_localize = __commonJS({
|
|
|
28943
28958
|
}
|
|
28944
28959
|
var Localizer;
|
|
28945
28960
|
(function(Localizer2) {
|
|
28946
|
-
let
|
|
28947
|
-
(function(
|
|
28948
|
-
|
|
28949
|
-
|
|
28950
|
-
|
|
28951
|
-
|
|
28952
|
-
|
|
28953
|
-
|
|
28954
|
-
|
|
28955
|
-
|
|
28956
|
-
|
|
28957
|
-
|
|
28958
|
-
|
|
28959
|
-
|
|
28960
|
-
|
|
28961
|
-
|
|
28962
|
-
|
|
28963
|
-
|
|
28964
|
-
|
|
28965
|
-
|
|
28966
|
-
|
|
28967
|
-
|
|
28968
|
-
|
|
28969
|
-
|
|
28970
|
-
|
|
28971
|
-
|
|
28972
|
-
|
|
28973
|
-
|
|
28974
|
-
|
|
28975
|
-
|
|
28976
|
-
|
|
28977
|
-
|
|
28978
|
-
|
|
28979
|
-
|
|
28980
|
-
|
|
28981
|
-
|
|
28982
|
-
|
|
28983
|
-
|
|
28984
|
-
|
|
28985
|
-
|
|
28986
|
-
|
|
28987
|
-
|
|
28988
|
-
|
|
28989
|
-
|
|
28990
|
-
|
|
28991
|
-
|
|
28992
|
-
|
|
28993
|
-
|
|
28994
|
-
|
|
28995
|
-
|
|
28996
|
-
|
|
28997
|
-
|
|
28998
|
-
|
|
28999
|
-
|
|
29000
|
-
|
|
29001
|
-
|
|
29002
|
-
|
|
29003
|
-
|
|
29004
|
-
|
|
29005
|
-
|
|
29006
|
-
|
|
29007
|
-
|
|
29008
|
-
|
|
29009
|
-
|
|
29010
|
-
|
|
29011
|
-
|
|
29012
|
-
|
|
29013
|
-
|
|
29014
|
-
|
|
29015
|
-
|
|
29016
|
-
|
|
29017
|
-
|
|
29018
|
-
|
|
29019
|
-
|
|
29020
|
-
|
|
29021
|
-
|
|
29022
|
-
|
|
29023
|
-
|
|
29024
|
-
|
|
29025
|
-
|
|
29026
|
-
|
|
29027
|
-
|
|
29028
|
-
|
|
29029
|
-
|
|
29030
|
-
|
|
29031
|
-
|
|
29032
|
-
|
|
29033
|
-
|
|
29034
|
-
|
|
29035
|
-
|
|
29036
|
-
|
|
29037
|
-
|
|
29038
|
-
|
|
29039
|
-
|
|
29040
|
-
|
|
29041
|
-
|
|
29042
|
-
|
|
29043
|
-
|
|
29044
|
-
|
|
29045
|
-
|
|
29046
|
-
|
|
29047
|
-
|
|
29048
|
-
|
|
29049
|
-
|
|
29050
|
-
|
|
29051
|
-
|
|
29052
|
-
|
|
29053
|
-
|
|
29054
|
-
|
|
29055
|
-
|
|
29056
|
-
|
|
29057
|
-
|
|
29058
|
-
|
|
29059
|
-
|
|
29060
|
-
|
|
29061
|
-
|
|
29062
|
-
|
|
29063
|
-
|
|
29064
|
-
|
|
29065
|
-
|
|
29066
|
-
|
|
29067
|
-
|
|
29068
|
-
|
|
29069
|
-
|
|
29070
|
-
|
|
29071
|
-
|
|
29072
|
-
|
|
29073
|
-
|
|
29074
|
-
|
|
29075
|
-
|
|
29076
|
-
|
|
29077
|
-
|
|
29078
|
-
|
|
29079
|
-
|
|
29080
|
-
|
|
29081
|
-
|
|
29082
|
-
|
|
29083
|
-
|
|
29084
|
-
|
|
29085
|
-
|
|
29086
|
-
|
|
29087
|
-
|
|
29088
|
-
|
|
29089
|
-
|
|
29090
|
-
|
|
29091
|
-
|
|
29092
|
-
|
|
29093
|
-
|
|
29094
|
-
|
|
29095
|
-
|
|
29096
|
-
|
|
29097
|
-
|
|
29098
|
-
|
|
29099
|
-
|
|
29100
|
-
|
|
29101
|
-
|
|
29102
|
-
|
|
29103
|
-
|
|
29104
|
-
|
|
29105
|
-
|
|
29106
|
-
|
|
29107
|
-
|
|
29108
|
-
|
|
29109
|
-
|
|
29110
|
-
|
|
29111
|
-
|
|
29112
|
-
|
|
29113
|
-
|
|
29114
|
-
|
|
29115
|
-
|
|
29116
|
-
|
|
29117
|
-
|
|
29118
|
-
|
|
29119
|
-
|
|
29120
|
-
|
|
29121
|
-
|
|
29122
|
-
|
|
29123
|
-
|
|
29124
|
-
|
|
29125
|
-
|
|
29126
|
-
|
|
29127
|
-
|
|
29128
|
-
|
|
29129
|
-
|
|
29130
|
-
|
|
29131
|
-
|
|
29132
|
-
|
|
29133
|
-
|
|
29134
|
-
|
|
29135
|
-
|
|
29136
|
-
|
|
29137
|
-
|
|
29138
|
-
|
|
29139
|
-
|
|
29140
|
-
|
|
29141
|
-
|
|
29142
|
-
|
|
29143
|
-
|
|
29144
|
-
|
|
29145
|
-
|
|
29146
|
-
|
|
29147
|
-
|
|
29148
|
-
|
|
29149
|
-
|
|
29150
|
-
|
|
29151
|
-
|
|
29152
|
-
|
|
29153
|
-
|
|
29154
|
-
|
|
29155
|
-
|
|
29156
|
-
|
|
29157
|
-
|
|
29158
|
-
|
|
29159
|
-
|
|
29160
|
-
|
|
29161
|
-
|
|
29162
|
-
|
|
29163
|
-
|
|
29164
|
-
|
|
29165
|
-
|
|
29166
|
-
|
|
29167
|
-
|
|
29168
|
-
|
|
29169
|
-
|
|
29170
|
-
|
|
29171
|
-
|
|
29172
|
-
|
|
29173
|
-
|
|
29174
|
-
|
|
29175
|
-
|
|
29176
|
-
|
|
29177
|
-
|
|
29178
|
-
|
|
29179
|
-
|
|
29180
|
-
|
|
29181
|
-
|
|
29182
|
-
|
|
29183
|
-
|
|
29184
|
-
|
|
29185
|
-
|
|
29186
|
-
|
|
29187
|
-
|
|
29188
|
-
|
|
29189
|
-
|
|
29190
|
-
|
|
29191
|
-
|
|
29192
|
-
|
|
29193
|
-
|
|
29194
|
-
|
|
29195
|
-
|
|
29196
|
-
|
|
29197
|
-
|
|
29198
|
-
|
|
29199
|
-
|
|
29200
|
-
|
|
29201
|
-
|
|
29202
|
-
|
|
29203
|
-
|
|
29204
|
-
|
|
29205
|
-
|
|
29206
|
-
|
|
29207
|
-
|
|
29208
|
-
|
|
29209
|
-
|
|
29210
|
-
|
|
29211
|
-
|
|
29212
|
-
|
|
29213
|
-
|
|
29214
|
-
|
|
29215
|
-
|
|
29216
|
-
|
|
29217
|
-
|
|
29218
|
-
|
|
29219
|
-
|
|
29220
|
-
|
|
29221
|
-
|
|
29222
|
-
|
|
29223
|
-
|
|
29224
|
-
|
|
29225
|
-
|
|
29226
|
-
|
|
29227
|
-
|
|
29228
|
-
|
|
29229
|
-
|
|
29230
|
-
|
|
29231
|
-
|
|
29232
|
-
|
|
29233
|
-
|
|
29234
|
-
|
|
29235
|
-
|
|
29236
|
-
|
|
29237
|
-
|
|
29238
|
-
|
|
29239
|
-
|
|
29240
|
-
|
|
29241
|
-
|
|
29242
|
-
|
|
29243
|
-
|
|
29244
|
-
|
|
29245
|
-
|
|
29246
|
-
|
|
29247
|
-
|
|
29248
|
-
|
|
29249
|
-
|
|
29250
|
-
|
|
29251
|
-
|
|
29252
|
-
|
|
29253
|
-
|
|
29254
|
-
|
|
29255
|
-
|
|
29256
|
-
|
|
29257
|
-
|
|
29258
|
-
|
|
29259
|
-
|
|
29260
|
-
|
|
29261
|
-
|
|
29262
|
-
|
|
29263
|
-
|
|
29264
|
-
|
|
29265
|
-
|
|
29266
|
-
|
|
29267
|
-
|
|
29268
|
-
|
|
29269
|
-
|
|
29270
|
-
|
|
29271
|
-
|
|
29272
|
-
|
|
29273
|
-
|
|
29274
|
-
|
|
29275
|
-
|
|
29276
|
-
|
|
29277
|
-
|
|
29278
|
-
|
|
29279
|
-
|
|
29280
|
-
|
|
29281
|
-
|
|
29282
|
-
|
|
29283
|
-
|
|
29284
|
-
|
|
29285
|
-
|
|
29286
|
-
|
|
29287
|
-
|
|
29288
|
-
|
|
29289
|
-
|
|
29290
|
-
|
|
29291
|
-
|
|
29292
|
-
|
|
29293
|
-
|
|
29294
|
-
|
|
29295
|
-
|
|
29296
|
-
|
|
29297
|
-
|
|
29298
|
-
|
|
29299
|
-
|
|
29300
|
-
|
|
29301
|
-
|
|
29302
|
-
|
|
29303
|
-
|
|
29304
|
-
|
|
29305
|
-
|
|
29306
|
-
|
|
29307
|
-
|
|
29308
|
-
|
|
29309
|
-
|
|
29310
|
-
|
|
29311
|
-
|
|
29312
|
-
|
|
29313
|
-
|
|
29314
|
-
|
|
29315
|
-
|
|
29316
|
-
|
|
29317
|
-
|
|
29318
|
-
|
|
29319
|
-
|
|
29320
|
-
|
|
29321
|
-
|
|
29322
|
-
|
|
29323
|
-
|
|
29324
|
-
|
|
29325
|
-
|
|
29326
|
-
|
|
29327
|
-
|
|
29328
|
-
|
|
29329
|
-
|
|
29330
|
-
|
|
29331
|
-
|
|
29332
|
-
|
|
29333
|
-
|
|
29334
|
-
|
|
29335
|
-
|
|
29336
|
-
|
|
29337
|
-
|
|
29338
|
-
|
|
29339
|
-
|
|
29340
|
-
|
|
29341
|
-
|
|
29342
|
-
|
|
29343
|
-
|
|
29344
|
-
|
|
29345
|
-
|
|
29346
|
-
|
|
29347
|
-
|
|
29348
|
-
|
|
29349
|
-
|
|
29350
|
-
|
|
29351
|
-
|
|
29352
|
-
|
|
29353
|
-
|
|
29354
|
-
|
|
29355
|
-
|
|
29356
|
-
|
|
29357
|
-
|
|
29358
|
-
|
|
29359
|
-
|
|
29360
|
-
|
|
29361
|
-
|
|
29362
|
-
|
|
29363
|
-
|
|
29364
|
-
|
|
29365
|
-
|
|
29366
|
-
|
|
29367
|
-
|
|
29368
|
-
|
|
29369
|
-
|
|
29370
|
-
|
|
29371
|
-
|
|
29372
|
-
|
|
29373
|
-
|
|
29374
|
-
|
|
29375
|
-
|
|
29376
|
-
|
|
29377
|
-
|
|
29378
|
-
|
|
29379
|
-
|
|
29380
|
-
|
|
29381
|
-
|
|
29382
|
-
|
|
29383
|
-
|
|
29384
|
-
|
|
29385
|
-
|
|
29386
|
-
|
|
29387
|
-
|
|
29388
|
-
|
|
29389
|
-
|
|
29390
|
-
|
|
29391
|
-
|
|
29392
|
-
|
|
29393
|
-
|
|
29394
|
-
|
|
29395
|
-
|
|
29396
|
-
|
|
29397
|
-
|
|
29398
|
-
|
|
29399
|
-
|
|
29400
|
-
|
|
29401
|
-
|
|
29402
|
-
|
|
29403
|
-
|
|
29404
|
-
|
|
29405
|
-
|
|
29406
|
-
|
|
29407
|
-
|
|
29408
|
-
|
|
29409
|
-
|
|
29410
|
-
|
|
29411
|
-
|
|
29412
|
-
|
|
29413
|
-
|
|
29414
|
-
|
|
29415
|
-
|
|
29416
|
-
|
|
29417
|
-
|
|
29418
|
-
|
|
29419
|
-
|
|
29420
|
-
|
|
29421
|
-
|
|
29422
|
-
|
|
29423
|
-
|
|
29424
|
-
|
|
29425
|
-
|
|
29426
|
-
|
|
29427
|
-
|
|
29428
|
-
|
|
29429
|
-
|
|
29430
|
-
|
|
29431
|
-
|
|
29432
|
-
|
|
29433
|
-
|
|
29434
|
-
|
|
29435
|
-
|
|
29436
|
-
|
|
29437
|
-
|
|
29438
|
-
|
|
29439
|
-
|
|
29440
|
-
|
|
29441
|
-
|
|
29442
|
-
|
|
29443
|
-
|
|
29444
|
-
|
|
29445
|
-
|
|
29446
|
-
|
|
29447
|
-
|
|
29448
|
-
|
|
29449
|
-
|
|
29450
|
-
|
|
29451
|
-
|
|
29452
|
-
|
|
29453
|
-
|
|
29454
|
-
|
|
29455
|
-
|
|
29456
|
-
|
|
29457
|
-
|
|
29458
|
-
|
|
29459
|
-
|
|
29460
|
-
|
|
29461
|
-
|
|
29462
|
-
|
|
29463
|
-
|
|
29464
|
-
|
|
29465
|
-
|
|
29466
|
-
|
|
29467
|
-
|
|
29468
|
-
|
|
29469
|
-
|
|
29470
|
-
|
|
29471
|
-
|
|
29472
|
-
|
|
29473
|
-
|
|
29474
|
-
})(
|
|
28961
|
+
let Diagnostic5;
|
|
28962
|
+
(function(Diagnostic6) {
|
|
28963
|
+
Diagnostic6.annotatedParamCountMismatch = () => new ParameterizedString(getRawString("Diagnostic.annotatedParamCountMismatch"));
|
|
28964
|
+
Diagnostic6.annotatedTypeArgMissing = () => getRawString("Diagnostic.annotatedTypeArgMissing");
|
|
28965
|
+
Diagnostic6.annotationFormatString = () => getRawString("Diagnostic.annotationFormatString");
|
|
28966
|
+
Diagnostic6.annotationNotSupported = () => getRawString("Diagnostic.annotationNotSupported");
|
|
28967
|
+
Diagnostic6.annotationSpansStrings = () => getRawString("Diagnostic.annotationSpansStrings");
|
|
28968
|
+
Diagnostic6.annotationStringEscape = () => getRawString("Diagnostic.annotationStringEscape");
|
|
28969
|
+
Diagnostic6.argAssignment = () => new ParameterizedString(getRawString("Diagnostic.argAssignment"));
|
|
28970
|
+
Diagnostic6.argAssignmentFunction = () => new ParameterizedString(getRawString("Diagnostic.argAssignmentFunction"));
|
|
28971
|
+
Diagnostic6.argAssignmentParam = () => new ParameterizedString(getRawString("Diagnostic.argAssignmentParam"));
|
|
28972
|
+
Diagnostic6.argAssignmentParamFunction = () => new ParameterizedString(getRawString("Diagnostic.argAssignmentParamFunction"));
|
|
28973
|
+
Diagnostic6.argMissingForParam = () => new ParameterizedString(getRawString("Diagnostic.argMissingForParam"));
|
|
28974
|
+
Diagnostic6.argMissingForParams = () => new ParameterizedString(getRawString("Diagnostic.argMissingForParams"));
|
|
28975
|
+
Diagnostic6.argMorePositionalExpectedCount = () => new ParameterizedString(getRawString("Diagnostic.argMorePositionalExpectedCount"));
|
|
28976
|
+
Diagnostic6.argMorePositionalExpectedOne = () => getRawString("Diagnostic.argMorePositionalExpectedOne");
|
|
28977
|
+
Diagnostic6.argPositional = () => getRawString("Diagnostic.argPositional");
|
|
28978
|
+
Diagnostic6.argPositionalExpectedCount = () => new ParameterizedString(getRawString("Diagnostic.argPositionalExpectedCount"));
|
|
28979
|
+
Diagnostic6.argPositionalExpectedOne = () => getRawString("Diagnostic.argPositionalExpectedOne");
|
|
28980
|
+
Diagnostic6.argTypePartiallyUnknown = () => getRawString("Diagnostic.argTypePartiallyUnknown");
|
|
28981
|
+
Diagnostic6.argTypeUnknown = () => getRawString("Diagnostic.argTypeUnknown");
|
|
28982
|
+
Diagnostic6.assertAlwaysTrue = () => getRawString("Diagnostic.assertAlwaysTrue");
|
|
28983
|
+
Diagnostic6.assertTypeArgs = () => getRawString("Diagnostic.assertTypeArgs");
|
|
28984
|
+
Diagnostic6.assertTypeTypeMismatch = () => new ParameterizedString(getRawString("Diagnostic.assertTypeTypeMismatch"));
|
|
28985
|
+
Diagnostic6.assignmentExprContext = () => getRawString("Diagnostic.assignmentExprContext");
|
|
28986
|
+
Diagnostic6.assignmentExprComprehension = () => new ParameterizedString(getRawString("Diagnostic.assignmentExprComprehension"));
|
|
28987
|
+
Diagnostic6.assignmentExprInSubscript = () => getRawString("Diagnostic.assignmentExprInSubscript");
|
|
28988
|
+
Diagnostic6.assignmentInProtocol = () => getRawString("Diagnostic.assignmentInProtocol");
|
|
28989
|
+
Diagnostic6.assignmentTargetExpr = () => getRawString("Diagnostic.assignmentTargetExpr");
|
|
28990
|
+
Diagnostic6.asyncNotInAsyncFunction = () => getRawString("Diagnostic.asyncNotInAsyncFunction");
|
|
28991
|
+
Diagnostic6.awaitIllegal = () => getRawString("Diagnostic.awaitIllegal");
|
|
28992
|
+
Diagnostic6.awaitNotInAsync = () => getRawString("Diagnostic.awaitNotInAsync");
|
|
28993
|
+
Diagnostic6.backticksIllegal = () => getRawString("Diagnostic.backticksIllegal");
|
|
28994
|
+
Diagnostic6.baseClassCircular = () => getRawString("Diagnostic.baseClassCircular");
|
|
28995
|
+
Diagnostic6.baseClassInvalid = () => getRawString("Diagnostic.baseClassInvalid");
|
|
28996
|
+
Diagnostic6.baseClassFinal = () => new ParameterizedString(getRawString("Diagnostic.baseClassFinal"));
|
|
28997
|
+
Diagnostic6.baseClassMethodTypeIncompatible = () => new ParameterizedString(getRawString("Diagnostic.baseClassMethodTypeIncompatible"));
|
|
28998
|
+
Diagnostic6.baseClassVariableTypeIncompatible = () => new ParameterizedString(getRawString("Diagnostic.baseClassVariableTypeIncompatible"));
|
|
28999
|
+
Diagnostic6.baseClassUnknown = () => getRawString("Diagnostic.baseClassUnknown");
|
|
29000
|
+
Diagnostic6.bindTypeMismatch = () => new ParameterizedString(getRawString("Diagnostic.bindTypeMismatch"));
|
|
29001
|
+
Diagnostic6.breakOutsideLoop = () => getRawString("Diagnostic.breakOutsideLoop");
|
|
29002
|
+
Diagnostic6.callableExtraArgs = () => getRawString("Diagnostic.callableExtraArgs");
|
|
29003
|
+
Diagnostic6.callableFirstArg = () => getRawString("Diagnostic.callableFirstArg");
|
|
29004
|
+
Diagnostic6.callableSecondArg = () => getRawString("Diagnostic.callableSecondArg");
|
|
29005
|
+
Diagnostic6.casePatternIsIrrefutable = () => getRawString("Diagnostic.casePatternIsIrrefutable");
|
|
29006
|
+
Diagnostic6.classAlreadySpecialized = () => new ParameterizedString(getRawString("Diagnostic.classAlreadySpecialized"));
|
|
29007
|
+
Diagnostic6.classDecoratorTypeUnknown = () => getRawString("Diagnostic.classDecoratorTypeUnknown");
|
|
29008
|
+
Diagnostic6.classDefinitionCycle = () => new ParameterizedString(getRawString("Diagnostic.classDefinitionCycle"));
|
|
29009
|
+
Diagnostic6.classGetItemClsParam = () => getRawString("Diagnostic.classGetItemClsParam");
|
|
29010
|
+
Diagnostic6.classMethodClsParam = () => getRawString("Diagnostic.classMethodClsParam");
|
|
29011
|
+
Diagnostic6.classNotRuntimeSubscriptable = () => new ParameterizedString(getRawString("Diagnostic.classNotRuntimeSubscriptable"));
|
|
29012
|
+
Diagnostic6.classPatternBuiltInArgCount = () => getRawString("Diagnostic.classPatternBuiltInArgCount");
|
|
29013
|
+
Diagnostic6.classPatternBuiltInArgPositional = () => getRawString("Diagnostic.classPatternBuiltInArgPositional");
|
|
29014
|
+
Diagnostic6.classPatternTypeAlias = () => new ParameterizedString(getRawString("Diagnostic.classPatternTypeAlias"));
|
|
29015
|
+
Diagnostic6.classTypeParametersIllegal = () => getRawString("Diagnostic.classTypeParametersIllegal");
|
|
29016
|
+
Diagnostic6.classVarNotAllowed = () => getRawString("Diagnostic.classVarNotAllowed");
|
|
29017
|
+
Diagnostic6.classVarFirstArgMissing = () => getRawString("Diagnostic.classVarFirstArgMissing");
|
|
29018
|
+
Diagnostic6.classVarOverridesInstanceVar = () => new ParameterizedString(getRawString("Diagnostic.classVarOverridesInstanceVar"));
|
|
29019
|
+
Diagnostic6.classVarTooManyArgs = () => getRawString("Diagnostic.classVarTooManyArgs");
|
|
29020
|
+
Diagnostic6.classVarWithTypeVar = () => getRawString("Diagnostic.classVarWithTypeVar");
|
|
29021
|
+
Diagnostic6.clsSelfParamTypeMismatch = () => new ParameterizedString(getRawString("Diagnostic.clsSelfParamTypeMismatch"));
|
|
29022
|
+
Diagnostic6.codeTooComplexToAnalyze = () => getRawString("Diagnostic.codeTooComplexToAnalyze");
|
|
29023
|
+
Diagnostic6.collectionAliasInstantiation = () => new ParameterizedString(getRawString("Diagnostic.collectionAliasInstantiation"));
|
|
29024
|
+
Diagnostic6.comparisonAlwaysFalse = () => new ParameterizedString(getRawString("Diagnostic.comparisonAlwaysFalse"));
|
|
29025
|
+
Diagnostic6.comparisonAlwaysTrue = () => new ParameterizedString(getRawString("Diagnostic.comparisonAlwaysTrue"));
|
|
29026
|
+
Diagnostic6.comprehensionInDict = () => getRawString("Diagnostic.comprehensionInDict");
|
|
29027
|
+
Diagnostic6.comprehensionInSet = () => getRawString("Diagnostic.comprehensionInSet");
|
|
29028
|
+
Diagnostic6.concatenateParamSpecMissing = () => getRawString("Diagnostic.concatenateParamSpecMissing");
|
|
29029
|
+
Diagnostic6.concatenateTypeArgsMissing = () => getRawString("Diagnostic.concatenateTypeArgsMissing");
|
|
29030
|
+
Diagnostic6.constantRedefinition = () => new ParameterizedString(getRawString("Diagnostic.constantRedefinition"));
|
|
29031
|
+
Diagnostic6.constructorNoArgs = () => new ParameterizedString(getRawString("Diagnostic.constructorNoArgs"));
|
|
29032
|
+
Diagnostic6.constructorParametersMismatch = () => new ParameterizedString(getRawString("Diagnostic.constructorParametersMismatch"));
|
|
29033
|
+
Diagnostic6.containmentAlwaysFalse = () => new ParameterizedString(getRawString("Diagnostic.containmentAlwaysFalse"));
|
|
29034
|
+
Diagnostic6.containmentAlwaysTrue = () => new ParameterizedString(getRawString("Diagnostic.containmentAlwaysTrue"));
|
|
29035
|
+
Diagnostic6.continueInFinally = () => getRawString("Diagnostic.continueInFinally");
|
|
29036
|
+
Diagnostic6.continueOutsideLoop = () => getRawString("Diagnostic.continueOutsideLoop");
|
|
29037
|
+
Diagnostic6.dataClassBaseClassFrozen = () => getRawString("Diagnostic.dataClassBaseClassFrozen");
|
|
29038
|
+
Diagnostic6.dataClassBaseClassNotFrozen = () => getRawString("Diagnostic.dataClassBaseClassNotFrozen");
|
|
29039
|
+
Diagnostic6.dataClassFieldWithDefault = () => getRawString("Diagnostic.dataClassFieldWithDefault");
|
|
29040
|
+
Diagnostic6.dataClassFieldWithoutAnnotation = () => getRawString("Diagnostic.dataClassFieldWithoutAnnotation");
|
|
29041
|
+
Diagnostic6.dataClassPostInitParamCount = () => new ParameterizedString(getRawString("Diagnostic.dataClassPostInitParamCount"));
|
|
29042
|
+
Diagnostic6.dataClassPostInitType = () => new ParameterizedString(getRawString("Diagnostic.dataClassPostInitType"));
|
|
29043
|
+
Diagnostic6.dataClassSlotsOverwrite = () => getRawString("Diagnostic.dataClassSlotsOverwrite");
|
|
29044
|
+
Diagnostic6.dataClassTransformExpectedBoolLiteral = () => getRawString("Diagnostic.dataClassTransformExpectedBoolLiteral");
|
|
29045
|
+
Diagnostic6.dataClassTransformFieldSpecifier = () => new ParameterizedString(getRawString("Diagnostic.dataClassTransformFieldSpecifier"));
|
|
29046
|
+
Diagnostic6.dataClassTransformPositionalParam = () => getRawString("Diagnostic.dataClassTransformPositionalParam");
|
|
29047
|
+
Diagnostic6.dataClassTransformUnknownArgument = () => new ParameterizedString(getRawString("Diagnostic.dataClassTransformUnknownArgument"));
|
|
29048
|
+
Diagnostic6.declaredReturnTypePartiallyUnknown = () => new ParameterizedString(getRawString("Diagnostic.declaredReturnTypePartiallyUnknown"));
|
|
29049
|
+
Diagnostic6.declaredReturnTypeUnknown = () => getRawString("Diagnostic.declaredReturnTypeUnknown");
|
|
29050
|
+
Diagnostic6.defaultValueContainsCall = () => getRawString("Diagnostic.defaultValueContainsCall");
|
|
29051
|
+
Diagnostic6.defaultValueNotAllowed = () => getRawString("Diagnostic.defaultValueNotAllowed");
|
|
29052
|
+
Diagnostic6.deprecatedType = () => new ParameterizedString(getRawString("Diagnostic.deprecatedType"));
|
|
29053
|
+
Diagnostic6.dictExpandIllegalInComprehension = () => getRawString("Diagnostic.dictExpandIllegalInComprehension");
|
|
29054
|
+
Diagnostic6.dictInAnnotation = () => getRawString("Diagnostic.dictInAnnotation");
|
|
29055
|
+
Diagnostic6.dictKeyValuePairs = () => getRawString("Diagnostic.dictKeyValuePairs");
|
|
29056
|
+
Diagnostic6.dictUnpackIsNotMapping = () => getRawString("Diagnostic.dictUnpackIsNotMapping");
|
|
29057
|
+
Diagnostic6.delTargetExpr = () => getRawString("Diagnostic.delTargetExpr");
|
|
29058
|
+
Diagnostic6.dunderAllSymbolNotPresent = () => new ParameterizedString(getRawString("Diagnostic.dunderAllSymbolNotPresent"));
|
|
29059
|
+
Diagnostic6.duplicateArgsParam = () => getRawString("Diagnostic.duplicateArgsParam");
|
|
29060
|
+
Diagnostic6.duplicateBaseClass = () => getRawString("Diagnostic.duplicateBaseClass");
|
|
29061
|
+
Diagnostic6.duplicateCatchAll = () => getRawString("Diagnostic.duplicateCatchAll");
|
|
29062
|
+
Diagnostic6.duplicateEnumMember = () => new ParameterizedString(getRawString("Diagnostic.duplicateEnumMember"));
|
|
29063
|
+
Diagnostic6.duplicateGenericAndProtocolBase = () => getRawString("Diagnostic.duplicateGenericAndProtocolBase");
|
|
29064
|
+
Diagnostic6.duplicateImport = () => new ParameterizedString(getRawString("Diagnostic.duplicateImport"));
|
|
29065
|
+
Diagnostic6.duplicateKwargsParam = () => getRawString("Diagnostic.duplicateKwargsParam");
|
|
29066
|
+
Diagnostic6.duplicateKeywordOnly = () => getRawString("Diagnostic.duplicateKeywordOnly");
|
|
29067
|
+
Diagnostic6.duplicateParam = () => new ParameterizedString(getRawString("Diagnostic.duplicateParam"));
|
|
29068
|
+
Diagnostic6.duplicateCapturePatternTarget = () => new ParameterizedString(getRawString("Diagnostic.duplicateCapturePatternTarget"));
|
|
29069
|
+
Diagnostic6.duplicateStarPattern = () => getRawString("Diagnostic.duplicateStarPattern");
|
|
29070
|
+
Diagnostic6.duplicateStarStarPattern = () => getRawString("Diagnostic.duplicateStarStarPattern");
|
|
29071
|
+
Diagnostic6.duplicatePositionOnly = () => getRawString("Diagnostic.duplicatePositionOnly");
|
|
29072
|
+
Diagnostic6.duplicateUnpack = () => getRawString("Diagnostic.duplicateUnpack");
|
|
29073
|
+
Diagnostic6.ellipsisContext = () => getRawString("Diagnostic.ellipsisContext");
|
|
29074
|
+
Diagnostic6.ellipsisSecondArg = () => getRawString("Diagnostic.ellipsisSecondArg");
|
|
29075
|
+
Diagnostic6.enumClassOverride = () => new ParameterizedString(getRawString("Diagnostic.enumClassOverride"));
|
|
29076
|
+
Diagnostic6.exceptionGroupIncompatible = () => getRawString("Diagnostic.exceptionGroupIncompatible");
|
|
29077
|
+
Diagnostic6.exceptionTypeIncorrect = () => new ParameterizedString(getRawString("Diagnostic.exceptionTypeIncorrect"));
|
|
29078
|
+
Diagnostic6.exceptionTypeNotClass = () => new ParameterizedString(getRawString("Diagnostic.exceptionTypeNotClass"));
|
|
29079
|
+
Diagnostic6.exceptionTypeNotInstantiable = () => new ParameterizedString(getRawString("Diagnostic.exceptionTypeNotInstantiable"));
|
|
29080
|
+
Diagnostic6.expectedAfterDecorator = () => getRawString("Diagnostic.expectedAfterDecorator");
|
|
29081
|
+
Diagnostic6.expectedArrow = () => getRawString("Diagnostic.expectedArrow");
|
|
29082
|
+
Diagnostic6.expectedAsAfterException = () => getRawString("Diagnostic.expectedAsAfterException");
|
|
29083
|
+
Diagnostic6.expectedAssignRightHandExpr = () => getRawString("Diagnostic.expectedAssignRightHandExpr");
|
|
29084
|
+
Diagnostic6.expectedBinaryRightHandExpr = () => getRawString("Diagnostic.expectedBinaryRightHandExpr");
|
|
29085
|
+
Diagnostic6.expectedBoolLiteral = () => getRawString("Diagnostic.expectedBoolLiteral");
|
|
29086
|
+
Diagnostic6.expectedCase = () => getRawString("Diagnostic.expectedCase");
|
|
29087
|
+
Diagnostic6.expectedClassName = () => getRawString("Diagnostic.expectedClassName");
|
|
29088
|
+
Diagnostic6.expectedCloseBrace = () => getRawString("Diagnostic.expectedCloseBrace");
|
|
29089
|
+
Diagnostic6.expectedCloseBracket = () => getRawString("Diagnostic.expectedCloseBracket");
|
|
29090
|
+
Diagnostic6.expectedCloseParen = () => getRawString("Diagnostic.expectedCloseParen");
|
|
29091
|
+
Diagnostic6.expectedColon = () => getRawString("Diagnostic.expectedColon");
|
|
29092
|
+
Diagnostic6.expectedComplexNumberLiteral = () => getRawString("Diagnostic.expectedComplexNumberLiteral");
|
|
29093
|
+
Diagnostic6.expectedDecoratorExpr = () => getRawString("Diagnostic.expectedDecoratorExpr");
|
|
29094
|
+
Diagnostic6.expectedDecoratorName = () => getRawString("Diagnostic.expectedDecoratorName");
|
|
29095
|
+
Diagnostic6.expectedDecoratorNewline = () => getRawString("Diagnostic.expectedDecoratorNewline");
|
|
29096
|
+
Diagnostic6.expectedDelExpr = () => getRawString("Diagnostic.expectedDelExpr");
|
|
29097
|
+
Diagnostic6.expectedElse = () => getRawString("Diagnostic.expectedElse");
|
|
29098
|
+
Diagnostic6.expectedEquals = () => getRawString("Diagnostic.expectedEquals");
|
|
29099
|
+
Diagnostic6.expectedExceptionClass = () => getRawString("Diagnostic.expectedExceptionClass");
|
|
29100
|
+
Diagnostic6.expectedExceptionObj = () => getRawString("Diagnostic.expectedExceptionObj");
|
|
29101
|
+
Diagnostic6.expectedExpr = () => getRawString("Diagnostic.expectedExpr");
|
|
29102
|
+
Diagnostic6.expectedImport = () => getRawString("Diagnostic.expectedImport");
|
|
29103
|
+
Diagnostic6.expectedImportAlias = () => getRawString("Diagnostic.expectedImportAlias");
|
|
29104
|
+
Diagnostic6.expectedImportSymbols = () => getRawString("Diagnostic.expectedImportSymbols");
|
|
29105
|
+
Diagnostic6.expectedIdentifier = () => getRawString("Diagnostic.expectedIdentifier");
|
|
29106
|
+
Diagnostic6.expectedIndentedBlock = () => getRawString("Diagnostic.expectedIndentedBlock");
|
|
29107
|
+
Diagnostic6.expectedIn = () => getRawString("Diagnostic.expectedIn");
|
|
29108
|
+
Diagnostic6.expectedInExpr = () => getRawString("Diagnostic.expectedInExpr");
|
|
29109
|
+
Diagnostic6.expectedFunctionAfterAsync = () => getRawString("Diagnostic.expectedFunctionAfterAsync");
|
|
29110
|
+
Diagnostic6.expectedFunctionName = () => getRawString("Diagnostic.expectedFunctionName");
|
|
29111
|
+
Diagnostic6.expectedMemberName = () => getRawString("Diagnostic.expectedMemberName");
|
|
29112
|
+
Diagnostic6.expectedModuleName = () => getRawString("Diagnostic.expectedModuleName");
|
|
29113
|
+
Diagnostic6.expectedNameAfterAs = () => getRawString("Diagnostic.expectedNameAfterAs");
|
|
29114
|
+
Diagnostic6.expectedNamedParameter = () => getRawString("Diagnostic.expectedNamedParameter");
|
|
29115
|
+
Diagnostic6.expectedNewline = () => getRawString("Diagnostic.expectedNewline");
|
|
29116
|
+
Diagnostic6.expectedNewlineOrSemicolon = () => getRawString("Diagnostic.expectedNewlineOrSemicolon");
|
|
29117
|
+
Diagnostic6.expectedOpenParen = () => getRawString("Diagnostic.expectedOpenParen");
|
|
29118
|
+
Diagnostic6.expectedParamName = () => getRawString("Diagnostic.expectedParamName");
|
|
29119
|
+
Diagnostic6.expectedPatternExpr = () => getRawString("Diagnostic.expectedPatternExpr");
|
|
29120
|
+
Diagnostic6.expectedPatternSubjectExpr = () => getRawString("Diagnostic.expectedPatternSubjectExpr");
|
|
29121
|
+
Diagnostic6.expectedPatternValue = () => getRawString("Diagnostic.expectedPatternValue");
|
|
29122
|
+
Diagnostic6.expectedReturnExpr = () => getRawString("Diagnostic.expectedReturnExpr");
|
|
29123
|
+
Diagnostic6.expectedSliceIndex = () => getRawString("Diagnostic.expectedSliceIndex");
|
|
29124
|
+
Diagnostic6.expectedTypeNotString = () => getRawString("Diagnostic.expectedTypeNotString");
|
|
29125
|
+
Diagnostic6.expectedTypeParameterName = () => getRawString("Diagnostic.expectedTypeParameterName");
|
|
29126
|
+
Diagnostic6.expectedYieldExpr = () => getRawString("Diagnostic.expectedYieldExpr");
|
|
29127
|
+
Diagnostic6.finalClassIsAbstract = () => new ParameterizedString(getRawString("Diagnostic.finalClassIsAbstract"));
|
|
29128
|
+
Diagnostic6.finalContext = () => getRawString("Diagnostic.finalContext");
|
|
29129
|
+
Diagnostic6.finalMethodOverride = () => new ParameterizedString(getRawString("Diagnostic.finalMethodOverride"));
|
|
29130
|
+
Diagnostic6.finalReassigned = () => new ParameterizedString(getRawString("Diagnostic.finalReassigned"));
|
|
29131
|
+
Diagnostic6.finalRedeclaration = () => new ParameterizedString(getRawString("Diagnostic.finalRedeclaration"));
|
|
29132
|
+
Diagnostic6.finalRedeclarationBySubclass = () => new ParameterizedString(getRawString("Diagnostic.finalRedeclarationBySubclass"));
|
|
29133
|
+
Diagnostic6.finalTooManyArgs = () => getRawString("Diagnostic.finalTooManyArgs");
|
|
29134
|
+
Diagnostic6.finalUnassigned = () => new ParameterizedString(getRawString("Diagnostic.finalUnassigned"));
|
|
29135
|
+
Diagnostic6.formatStringBrace = () => getRawString("Diagnostic.formatStringBrace");
|
|
29136
|
+
Diagnostic6.formatStringBytes = () => getRawString("Diagnostic.formatStringBytes");
|
|
29137
|
+
Diagnostic6.formatStringEscape = () => getRawString("Diagnostic.formatStringEscape");
|
|
29138
|
+
Diagnostic6.formatStringInPattern = () => getRawString("Diagnostic.formatStringInPattern");
|
|
29139
|
+
Diagnostic6.formatStringIllegal = () => getRawString("Diagnostic.formatStringIllegal");
|
|
29140
|
+
Diagnostic6.formatStringUnicode = () => getRawString("Diagnostic.formatStringUnicode");
|
|
29141
|
+
Diagnostic6.formatStringUnterminated = () => getRawString("Diagnostic.formatStringUnterminated");
|
|
29142
|
+
Diagnostic6.functionDecoratorTypeUnknown = () => getRawString("Diagnostic.functionDecoratorTypeUnknown");
|
|
29143
|
+
Diagnostic6.functionInConditionalExpression = () => getRawString("Diagnostic.functionInConditionalExpression");
|
|
29144
|
+
Diagnostic6.functionTypeParametersIllegal = () => getRawString("Diagnostic.functionTypeParametersIllegal");
|
|
29145
|
+
Diagnostic6.futureImportLocationNotAllowed = () => getRawString("Diagnostic.futureImportLocationNotAllowed");
|
|
29146
|
+
Diagnostic6.generatorAsyncReturnType = () => getRawString("Diagnostic.generatorAsyncReturnType");
|
|
29147
|
+
Diagnostic6.generatorNotParenthesized = () => getRawString("Diagnostic.generatorNotParenthesized");
|
|
29148
|
+
Diagnostic6.generatorSyncReturnType = () => getRawString("Diagnostic.generatorSyncReturnType");
|
|
29149
|
+
Diagnostic6.genericBaseClassNotAllowed = () => getRawString("Diagnostic.genericBaseClassNotAllowed");
|
|
29150
|
+
Diagnostic6.genericClassAssigned = () => getRawString("Diagnostic.genericClassAssigned");
|
|
29151
|
+
Diagnostic6.genericClassDeleted = () => getRawString("Diagnostic.genericClassDeleted");
|
|
29152
|
+
Diagnostic6.genericNotAllowed = () => getRawString("Diagnostic.genericNotAllowed");
|
|
29153
|
+
Diagnostic6.genericTypeAliasBoundTypeVar = () => new ParameterizedString(getRawString("Diagnostic.genericTypeAliasBoundTypeVar"));
|
|
29154
|
+
Diagnostic6.genericTypeArgMissing = () => getRawString("Diagnostic.genericTypeArgMissing");
|
|
29155
|
+
Diagnostic6.genericTypeArgTypeVar = () => getRawString("Diagnostic.genericTypeArgTypeVar");
|
|
29156
|
+
Diagnostic6.genericTypeArgUnique = () => getRawString("Diagnostic.genericTypeArgUnique");
|
|
29157
|
+
Diagnostic6.globalReassignment = () => new ParameterizedString(getRawString("Diagnostic.globalReassignment"));
|
|
29158
|
+
Diagnostic6.globalRedefinition = () => new ParameterizedString(getRawString("Diagnostic.globalRedefinition"));
|
|
29159
|
+
Diagnostic6.implicitStringConcat = () => getRawString("Diagnostic.implicitStringConcat");
|
|
29160
|
+
Diagnostic6.importCycleDetected = () => getRawString("Diagnostic.importCycleDetected");
|
|
29161
|
+
Diagnostic6.importDepthExceeded = () => new ParameterizedString(getRawString("Diagnostic.importDepthExceeded"));
|
|
29162
|
+
Diagnostic6.importResolveFailure = () => new ParameterizedString(getRawString("Diagnostic.importResolveFailure"));
|
|
29163
|
+
Diagnostic6.importSourceResolveFailure = () => new ParameterizedString(getRawString("Diagnostic.importSourceResolveFailure"));
|
|
29164
|
+
Diagnostic6.importSymbolUnknown = () => new ParameterizedString(getRawString("Diagnostic.importSymbolUnknown"));
|
|
29165
|
+
Diagnostic6.incompatibleMethodOverride = () => new ParameterizedString(getRawString("Diagnostic.incompatibleMethodOverride"));
|
|
29166
|
+
Diagnostic6.inconsistentIndent = () => getRawString("Diagnostic.inconsistentIndent");
|
|
29167
|
+
Diagnostic6.inconsistentTabs = () => getRawString("Diagnostic.inconsistentTabs");
|
|
29168
|
+
Diagnostic6.initMustReturnNone = () => getRawString("Diagnostic.initMustReturnNone");
|
|
29169
|
+
Diagnostic6.initSubclassClsParam = () => getRawString("Diagnostic.initSubclassClsParam");
|
|
29170
|
+
Diagnostic6.instanceMethodSelfParam = () => getRawString("Diagnostic.instanceMethodSelfParam");
|
|
29171
|
+
Diagnostic6.instanceVarOverridesClassVar = () => new ParameterizedString(getRawString("Diagnostic.instanceVarOverridesClassVar"));
|
|
29172
|
+
Diagnostic6.instantiateAbstract = () => new ParameterizedString(getRawString("Diagnostic.instantiateAbstract"));
|
|
29173
|
+
Diagnostic6.instantiateProtocol = () => new ParameterizedString(getRawString("Diagnostic.instantiateProtocol"));
|
|
29174
|
+
Diagnostic6.internalBindError = () => new ParameterizedString(getRawString("Diagnostic.internalBindError"));
|
|
29175
|
+
Diagnostic6.internalParseError = () => new ParameterizedString(getRawString("Diagnostic.internalParseError"));
|
|
29176
|
+
Diagnostic6.internalTypeCheckingError = () => new ParameterizedString(getRawString("Diagnostic.internalTypeCheckingError"));
|
|
29177
|
+
Diagnostic6.invalidIdentifierChar = () => getRawString("Diagnostic.invalidIdentifierChar");
|
|
29178
|
+
Diagnostic6.invalidStubStatement = () => getRawString("Diagnostic.invalidStubStatement");
|
|
29179
|
+
Diagnostic6.invalidTokenChars = () => new ParameterizedString(getRawString("Diagnostic.invalidTokenChars"));
|
|
29180
|
+
Diagnostic6.isInstanceInvalidType = () => new ParameterizedString(getRawString("Diagnostic.isInstanceInvalidType"));
|
|
29181
|
+
Diagnostic6.isSubclassInvalidType = () => new ParameterizedString(getRawString("Diagnostic.isSubclassInvalidType"));
|
|
29182
|
+
Diagnostic6.keyValueInSet = () => getRawString("Diagnostic.keyValueInSet");
|
|
29183
|
+
Diagnostic6.keywordArgInTypeArgument = () => getRawString("Diagnostic.keywordArgInTypeArgument");
|
|
29184
|
+
Diagnostic6.keywordOnlyAfterArgs = () => getRawString("Diagnostic.keywordOnlyAfterArgs");
|
|
29185
|
+
Diagnostic6.keywordParameterMissing = () => getRawString("Diagnostic.keywordParameterMissing");
|
|
29186
|
+
Diagnostic6.keywordSubscriptIllegal = () => getRawString("Diagnostic.keywordSubscriptIllegal");
|
|
29187
|
+
Diagnostic6.lambdaReturnTypeUnknown = () => getRawString("Diagnostic.lambdaReturnTypeUnknown");
|
|
29188
|
+
Diagnostic6.lambdaReturnTypePartiallyUnknown = () => new ParameterizedString(getRawString("Diagnostic.lambdaReturnTypePartiallyUnknown"));
|
|
29189
|
+
Diagnostic6.listAssignmentMismatch = () => new ParameterizedString(getRawString("Diagnostic.listAssignmentMismatch"));
|
|
29190
|
+
Diagnostic6.listInAnnotation = () => getRawString("Diagnostic.listInAnnotation");
|
|
29191
|
+
Diagnostic6.literalUnsupportedType = () => getRawString("Diagnostic.literalUnsupportedType");
|
|
29192
|
+
Diagnostic6.literalEmptyArgs = () => getRawString("Diagnostic.literalEmptyArgs");
|
|
29193
|
+
Diagnostic6.literalNotCallable = () => getRawString("Diagnostic.literalNotCallable");
|
|
29194
|
+
Diagnostic6.matchIncompatible = () => getRawString("Diagnostic.matchIncompatible");
|
|
29195
|
+
Diagnostic6.matchIsNotExhaustive = () => getRawString("Diagnostic.matchIsNotExhaustive");
|
|
29196
|
+
Diagnostic6.maxParseDepthExceeded = () => getRawString("Diagnostic.maxParseDepthExceeded");
|
|
29197
|
+
Diagnostic6.memberAccess = () => new ParameterizedString(getRawString("Diagnostic.memberAccess"));
|
|
29198
|
+
Diagnostic6.memberDelete = () => new ParameterizedString(getRawString("Diagnostic.memberDelete"));
|
|
29199
|
+
Diagnostic6.memberSet = () => new ParameterizedString(getRawString("Diagnostic.memberSet"));
|
|
29200
|
+
Diagnostic6.metaclassConflict = () => getRawString("Diagnostic.metaclassConflict");
|
|
29201
|
+
Diagnostic6.metaclassDuplicate = () => getRawString("Diagnostic.metaclassDuplicate");
|
|
29202
|
+
Diagnostic6.metaclassIsGeneric = () => getRawString("Diagnostic.metaclassIsGeneric");
|
|
29203
|
+
Diagnostic6.methodNotDefined = () => new ParameterizedString(getRawString("Diagnostic.methodNotDefined"));
|
|
29204
|
+
Diagnostic6.methodNotDefinedOnType = () => new ParameterizedString(getRawString("Diagnostic.methodNotDefinedOnType"));
|
|
29205
|
+
Diagnostic6.methodOrdering = () => getRawString("Diagnostic.methodOrdering");
|
|
29206
|
+
Diagnostic6.methodOverridden = () => new ParameterizedString(getRawString("Diagnostic.methodOverridden"));
|
|
29207
|
+
Diagnostic6.methodReturnsNonObject = () => new ParameterizedString(getRawString("Diagnostic.methodReturnsNonObject"));
|
|
29208
|
+
Diagnostic6.missingProtocolMembers = () => getRawString("Diagnostic.missingProtocolMembers");
|
|
29209
|
+
Diagnostic6.missingSuperCall = () => new ParameterizedString(getRawString("Diagnostic.missingSuperCall"));
|
|
29210
|
+
Diagnostic6.moduleAsType = () => getRawString("Diagnostic.moduleAsType");
|
|
29211
|
+
Diagnostic6.moduleNotCallable = () => getRawString("Diagnostic.moduleNotCallable");
|
|
29212
|
+
Diagnostic6.moduleUnknownMember = () => new ParameterizedString(getRawString("Diagnostic.moduleUnknownMember"));
|
|
29213
|
+
Diagnostic6.namedExceptAfterCatchAll = () => getRawString("Diagnostic.namedExceptAfterCatchAll");
|
|
29214
|
+
Diagnostic6.namedParamAfterParamSpecArgs = () => new ParameterizedString(getRawString("Diagnostic.namedParamAfterParamSpecArgs"));
|
|
29215
|
+
Diagnostic6.namedTupleEmptyName = () => getRawString("Diagnostic.namedTupleEmptyName");
|
|
29216
|
+
Diagnostic6.namedTupleFirstArg = () => getRawString("Diagnostic.namedTupleFirstArg");
|
|
29217
|
+
Diagnostic6.namedTupleMultipleInheritance = () => getRawString("Diagnostic.namedTupleMultipleInheritance");
|
|
29218
|
+
Diagnostic6.namedTupleNameType = () => getRawString("Diagnostic.namedTupleNameType");
|
|
29219
|
+
Diagnostic6.namedTupleNameUnique = () => getRawString("Diagnostic.namedTupleNameUnique");
|
|
29220
|
+
Diagnostic6.namedTupleNoTypes = () => getRawString("Diagnostic.namedTupleNoTypes");
|
|
29221
|
+
Diagnostic6.namedTupleSecondArg = () => getRawString("Diagnostic.namedTupleSecondArg");
|
|
29222
|
+
Diagnostic6.newClsParam = () => getRawString("Diagnostic.newClsParam");
|
|
29223
|
+
Diagnostic6.newTypeLiteral = () => getRawString("Diagnostic.newTypeLiteral");
|
|
29224
|
+
Diagnostic6.newTypeNotAClass = () => getRawString("Diagnostic.newTypeNotAClass");
|
|
29225
|
+
Diagnostic6.newTypeProtocolClass = () => getRawString("Diagnostic.newTypeProtocolClass");
|
|
29226
|
+
Diagnostic6.nonDefaultAfterDefault = () => getRawString("Diagnostic.nonDefaultAfterDefault");
|
|
29227
|
+
Diagnostic6.noneNotCallable = () => getRawString("Diagnostic.noneNotCallable");
|
|
29228
|
+
Diagnostic6.noneNotIterable = () => getRawString("Diagnostic.noneNotIterable");
|
|
29229
|
+
Diagnostic6.noneNotSubscriptable = () => getRawString("Diagnostic.noneNotSubscriptable");
|
|
29230
|
+
Diagnostic6.noneNotUsableWith = () => getRawString("Diagnostic.noneNotUsableWith");
|
|
29231
|
+
Diagnostic6.noneOperator = () => new ParameterizedString(getRawString("Diagnostic.noneOperator"));
|
|
29232
|
+
Diagnostic6.noneUnknownMember = () => new ParameterizedString(getRawString("Diagnostic.noneUnknownMember"));
|
|
29233
|
+
Diagnostic6.nonLocalNoBinding = () => new ParameterizedString(getRawString("Diagnostic.nonLocalNoBinding"));
|
|
29234
|
+
Diagnostic6.nonLocalReassignment = () => new ParameterizedString(getRawString("Diagnostic.nonLocalReassignment"));
|
|
29235
|
+
Diagnostic6.nonLocalRedefinition = () => new ParameterizedString(getRawString("Diagnostic.nonLocalRedefinition"));
|
|
29236
|
+
Diagnostic6.nonLocalInModule = () => getRawString("Diagnostic.nonLocalInModule");
|
|
29237
|
+
Diagnostic6.noOverload = () => new ParameterizedString(getRawString("Diagnostic.noOverload"));
|
|
29238
|
+
Diagnostic6.noReturnContainsReturn = () => getRawString("Diagnostic.noReturnContainsReturn");
|
|
29239
|
+
Diagnostic6.noReturnContainsYield = () => getRawString("Diagnostic.noReturnContainsYield");
|
|
29240
|
+
Diagnostic6.noReturnReturnsNone = () => getRawString("Diagnostic.noReturnReturnsNone");
|
|
29241
|
+
Diagnostic6.notRequiredArgCount = () => getRawString("Diagnostic.notRequiredArgCount");
|
|
29242
|
+
Diagnostic6.notRequiredNotInTypedDict = () => getRawString("Diagnostic.notRequiredNotInTypedDict");
|
|
29243
|
+
Diagnostic6.objectNotCallable = () => new ParameterizedString(getRawString("Diagnostic.objectNotCallable"));
|
|
29244
|
+
Diagnostic6.obscuredClassDeclaration = () => new ParameterizedString(getRawString("Diagnostic.obscuredClassDeclaration"));
|
|
29245
|
+
Diagnostic6.obscuredFunctionDeclaration = () => new ParameterizedString(getRawString("Diagnostic.obscuredFunctionDeclaration"));
|
|
29246
|
+
Diagnostic6.obscuredMethodDeclaration = () => new ParameterizedString(getRawString("Diagnostic.obscuredMethodDeclaration"));
|
|
29247
|
+
Diagnostic6.obscuredParameterDeclaration = () => new ParameterizedString(getRawString("Diagnostic.obscuredParameterDeclaration"));
|
|
29248
|
+
Diagnostic6.obscuredTypeAliasDeclaration = () => new ParameterizedString(getRawString("Diagnostic.obscuredTypeAliasDeclaration"));
|
|
29249
|
+
Diagnostic6.obscuredVariableDeclaration = () => new ParameterizedString(getRawString("Diagnostic.obscuredVariableDeclaration"));
|
|
29250
|
+
Diagnostic6.operatorLessOrGreaterDeprecated = () => getRawString("Diagnostic.operatorLessOrGreaterDeprecated");
|
|
29251
|
+
Diagnostic6.optionalExtraArgs = () => getRawString("Diagnostic.optionalExtraArgs");
|
|
29252
|
+
Diagnostic6.orPatternIrrefutable = () => getRawString("Diagnostic.orPatternIrrefutable");
|
|
29253
|
+
Diagnostic6.orPatternMissingName = () => getRawString("Diagnostic.orPatternMissingName");
|
|
29254
|
+
Diagnostic6.overlappingOverload = () => new ParameterizedString(getRawString("Diagnostic.overlappingOverload"));
|
|
29255
|
+
Diagnostic6.overloadAbstractMismatch = () => new ParameterizedString(getRawString("Diagnostic.overloadAbstractMismatch"));
|
|
29256
|
+
Diagnostic6.overloadImplementationMismatch = () => new ParameterizedString(getRawString("Diagnostic.overloadImplementationMismatch"));
|
|
29257
|
+
Diagnostic6.overloadReturnTypeMismatch = () => new ParameterizedString(getRawString("Diagnostic.overloadReturnTypeMismatch"));
|
|
29258
|
+
Diagnostic6.overloadWithImplementation = () => new ParameterizedString(getRawString("Diagnostic.overloadWithImplementation"));
|
|
29259
|
+
Diagnostic6.overloadWithoutImplementation = () => new ParameterizedString(getRawString("Diagnostic.overloadWithoutImplementation"));
|
|
29260
|
+
Diagnostic6.overrideNotFound = () => new ParameterizedString(getRawString("Diagnostic.overrideNotFound"));
|
|
29261
|
+
Diagnostic6.paramAfterKwargsParam = () => getRawString("Diagnostic.paramAfterKwargsParam");
|
|
29262
|
+
Diagnostic6.paramAlreadyAssigned = () => new ParameterizedString(getRawString("Diagnostic.paramAlreadyAssigned"));
|
|
29263
|
+
Diagnostic6.paramAnnotationMissing = () => new ParameterizedString(getRawString("Diagnostic.paramAnnotationMissing"));
|
|
29264
|
+
Diagnostic6.paramNameMissing = () => new ParameterizedString(getRawString("Diagnostic.paramNameMissing"));
|
|
29265
|
+
Diagnostic6.paramSpecArgsKwargsUsage = () => getRawString("Diagnostic.paramSpecArgsKwargsUsage");
|
|
29266
|
+
Diagnostic6.paramSpecArgsMissing = () => new ParameterizedString(getRawString("Diagnostic.paramSpecArgsMissing"));
|
|
29267
|
+
Diagnostic6.paramSpecArgsUsage = () => getRawString("Diagnostic.paramSpecArgsUsage");
|
|
29268
|
+
Diagnostic6.paramSpecAssignedName = () => new ParameterizedString(getRawString("Diagnostic.paramSpecAssignedName"));
|
|
29269
|
+
Diagnostic6.paramSpecContext = () => getRawString("Diagnostic.paramSpecContext");
|
|
29270
|
+
Diagnostic6.paramSpecDefaultNotTuple = () => getRawString("Diagnostic.paramSpecDefaultNotTuple");
|
|
29271
|
+
Diagnostic6.paramSpecFirstArg = () => getRawString("Diagnostic.paramSpecFirstArg");
|
|
29272
|
+
Diagnostic6.paramSpecKwargsUsage = () => getRawString("Diagnostic.paramSpecKwargsUsage");
|
|
29273
|
+
Diagnostic6.paramSpecNotBound = () => new ParameterizedString(getRawString("Diagnostic.paramSpecNotBound"));
|
|
29274
|
+
Diagnostic6.paramSpecNotUsedByOuterScope = () => new ParameterizedString(getRawString("Diagnostic.paramSpecNotUsedByOuterScope"));
|
|
29275
|
+
Diagnostic6.paramSpecUnknownArg = () => getRawString("Diagnostic.paramSpecUnknownArg");
|
|
29276
|
+
Diagnostic6.paramSpecUnknownMember = () => new ParameterizedString(getRawString("Diagnostic.paramSpecUnknownMember"));
|
|
29277
|
+
Diagnostic6.paramSpecUnknownParam = () => new ParameterizedString(getRawString("Diagnostic.paramSpecUnknownParam"));
|
|
29278
|
+
Diagnostic6.paramTypeCovariant = () => getRawString("Diagnostic.paramTypeCovariant");
|
|
29279
|
+
Diagnostic6.paramTypeUnknown = () => new ParameterizedString(getRawString("Diagnostic.paramTypeUnknown"));
|
|
29280
|
+
Diagnostic6.paramAssignmentMismatch = () => new ParameterizedString(getRawString("Diagnostic.paramAssignmentMismatch"));
|
|
29281
|
+
Diagnostic6.paramTypePartiallyUnknown = () => new ParameterizedString(getRawString("Diagnostic.paramTypePartiallyUnknown"));
|
|
29282
|
+
Diagnostic6.parenthesizedContextManagerIllegal = () => getRawString("Diagnostic.parenthesizedContextManagerIllegal");
|
|
29283
|
+
Diagnostic6.positionArgAfterNamedArg = () => getRawString("Diagnostic.positionArgAfterNamedArg");
|
|
29284
|
+
Diagnostic6.privateImportFromPyTypedModule = () => new ParameterizedString(getRawString("Diagnostic.privateImportFromPyTypedModule"));
|
|
29285
|
+
Diagnostic6.positionOnlyAfterArgs = () => getRawString("Diagnostic.positionOnlyAfterArgs");
|
|
29286
|
+
Diagnostic6.positionOnlyAfterKeywordOnly = () => getRawString("Diagnostic.positionOnlyAfterKeywordOnly");
|
|
29287
|
+
Diagnostic6.positionOnlyIncompatible = () => getRawString("Diagnostic.positionOnlyIncompatible");
|
|
29288
|
+
Diagnostic6.positionOnlyFirstParam = () => getRawString("Diagnostic.positionOnlyFirstParam");
|
|
29289
|
+
Diagnostic6.privateUsedOutsideOfClass = () => new ParameterizedString(getRawString("Diagnostic.privateUsedOutsideOfClass"));
|
|
29290
|
+
Diagnostic6.privateUsedOutsideOfModule = () => new ParameterizedString(getRawString("Diagnostic.privateUsedOutsideOfModule"));
|
|
29291
|
+
Diagnostic6.propertyOverridden = () => new ParameterizedString(getRawString("Diagnostic.propertyOverridden"));
|
|
29292
|
+
Diagnostic6.propertyStaticMethod = () => getRawString("Diagnostic.propertyStaticMethod");
|
|
29293
|
+
Diagnostic6.protectedUsedOutsideOfClass = () => new ParameterizedString(getRawString("Diagnostic.protectedUsedOutsideOfClass"));
|
|
29294
|
+
Diagnostic6.protocolBaseClass = () => new ParameterizedString(getRawString("Diagnostic.protocolBaseClass"));
|
|
29295
|
+
Diagnostic6.protocolBaseClassWithTypeArgs = () => getRawString("Diagnostic.protocolBaseClassWithTypeArgs");
|
|
29296
|
+
Diagnostic6.protocolIllegal = () => getRawString("Diagnostic.protocolIllegal");
|
|
29297
|
+
Diagnostic6.protocolMemberNotClassVar = () => new ParameterizedString(getRawString("Diagnostic.protocolMemberNotClassVar"));
|
|
29298
|
+
Diagnostic6.protocolNotAllowedInTypeArgument = () => getRawString("Diagnostic.protocolNotAllowedInTypeArgument");
|
|
29299
|
+
Diagnostic6.protocolUsedInCall = () => new ParameterizedString(getRawString("Diagnostic.protocolUsedInCall"));
|
|
29300
|
+
Diagnostic6.protocolVarianceContravariant = () => new ParameterizedString(getRawString("Diagnostic.protocolVarianceContravariant"));
|
|
29301
|
+
Diagnostic6.protocolVarianceCovariant = () => new ParameterizedString(getRawString("Diagnostic.protocolVarianceCovariant"));
|
|
29302
|
+
Diagnostic6.protocolVarianceInvariant = () => new ParameterizedString(getRawString("Diagnostic.protocolVarianceInvariant"));
|
|
29303
|
+
Diagnostic6.recursiveDefinition = () => new ParameterizedString(getRawString("Diagnostic.recursiveDefinition"));
|
|
29304
|
+
Diagnostic6.relativeImportNotAllowed = () => getRawString("Diagnostic.relativeImportNotAllowed");
|
|
29305
|
+
Diagnostic6.requiredArgCount = () => getRawString("Diagnostic.requiredArgCount");
|
|
29306
|
+
Diagnostic6.requiredNotInTypedDict = () => getRawString("Diagnostic.requiredNotInTypedDict");
|
|
29307
|
+
Diagnostic6.returnInAsyncGenerator = () => getRawString("Diagnostic.returnInAsyncGenerator");
|
|
29308
|
+
Diagnostic6.returnMissing = () => new ParameterizedString(getRawString("Diagnostic.returnMissing"));
|
|
29309
|
+
Diagnostic6.returnOutsideFunction = () => getRawString("Diagnostic.returnOutsideFunction");
|
|
29310
|
+
Diagnostic6.returnTypeContravariant = () => getRawString("Diagnostic.returnTypeContravariant");
|
|
29311
|
+
Diagnostic6.returnTypeMismatch = () => new ParameterizedString(getRawString("Diagnostic.returnTypeMismatch"));
|
|
29312
|
+
Diagnostic6.returnTypeUnknown = () => getRawString("Diagnostic.returnTypeUnknown");
|
|
29313
|
+
Diagnostic6.returnTypePartiallyUnknown = () => new ParameterizedString(getRawString("Diagnostic.returnTypePartiallyUnknown"));
|
|
29314
|
+
Diagnostic6.revealLocalsArgs = () => getRawString("Diagnostic.revealLocalsArgs");
|
|
29315
|
+
Diagnostic6.revealLocalsNone = () => getRawString("Diagnostic.revealLocalsNone");
|
|
29316
|
+
Diagnostic6.revealTypeArgs = () => getRawString("Diagnostic.revealTypeArgs");
|
|
29317
|
+
Diagnostic6.revealTypeExpectedTextArg = () => getRawString("Diagnostic.revealTypeExpectedTextArg");
|
|
29318
|
+
Diagnostic6.revealTypeExpectedTextMismatch = () => new ParameterizedString(getRawString("Diagnostic.revealTypeExpectedTextMismatch"));
|
|
29319
|
+
Diagnostic6.revealTypeExpectedTypeMismatch = () => new ParameterizedString(getRawString("Diagnostic.revealTypeExpectedTypeMismatch"));
|
|
29320
|
+
Diagnostic6.selfTypeContext = () => getRawString("Diagnostic.selfTypeContext");
|
|
29321
|
+
Diagnostic6.selfTypeWithTypedSelfOrCls = () => getRawString("Diagnostic.selfTypeWithTypedSelfOrCls");
|
|
29322
|
+
Diagnostic6.setterGetterTypeMismatch = () => getRawString("Diagnostic.setterGetterTypeMismatch");
|
|
29323
|
+
Diagnostic6.starPatternInAsPattern = () => getRawString("Diagnostic.starPatternInAsPattern");
|
|
29324
|
+
Diagnostic6.starPatternInOrPattern = () => getRawString("Diagnostic.starPatternInOrPattern");
|
|
29325
|
+
Diagnostic6.singleOverload = () => new ParameterizedString(getRawString("Diagnostic.singleOverload"));
|
|
29326
|
+
Diagnostic6.slotsAttributeError = () => new ParameterizedString(getRawString("Diagnostic.slotsAttributeError"));
|
|
29327
|
+
Diagnostic6.slotsClassVarConflict = () => new ParameterizedString(getRawString("Diagnostic.slotsClassVarConflict"));
|
|
29328
|
+
Diagnostic6.starStarWildcardNotAllowed = () => getRawString("Diagnostic.starStarWildcardNotAllowed");
|
|
29329
|
+
Diagnostic6.staticClsSelfParam = () => getRawString("Diagnostic.staticClsSelfParam");
|
|
29330
|
+
Diagnostic6.stdlibModuleOverridden = () => new ParameterizedString(getRawString("Diagnostic.stdlibModuleOverridden"));
|
|
29331
|
+
Diagnostic6.strictTypeGuardReturnType = () => new ParameterizedString(getRawString("Diagnostic.strictTypeGuardReturnType"));
|
|
29332
|
+
Diagnostic6.stringNonAsciiBytes = () => getRawString("Diagnostic.stringNonAsciiBytes");
|
|
29333
|
+
Diagnostic6.stringNotSubscriptable = () => getRawString("Diagnostic.stringNotSubscriptable");
|
|
29334
|
+
Diagnostic6.stringUnsupportedEscape = () => getRawString("Diagnostic.stringUnsupportedEscape");
|
|
29335
|
+
Diagnostic6.stringUnterminated = () => getRawString("Diagnostic.stringUnterminated");
|
|
29336
|
+
Diagnostic6.stubFileMissing = () => new ParameterizedString(getRawString("Diagnostic.stubFileMissing"));
|
|
29337
|
+
Diagnostic6.stubUsesGetAttr = () => getRawString("Diagnostic.stubUsesGetAttr");
|
|
29338
|
+
Diagnostic6.sublistParamsIncompatible = () => getRawString("Diagnostic.sublistParamsIncompatible");
|
|
29339
|
+
Diagnostic6.superCallArgCount = () => getRawString("Diagnostic.superCallArgCount");
|
|
29340
|
+
Diagnostic6.superCallFirstArg = () => new ParameterizedString(getRawString("Diagnostic.superCallFirstArg"));
|
|
29341
|
+
Diagnostic6.superCallSecondArg = () => new ParameterizedString(getRawString("Diagnostic.superCallSecondArg"));
|
|
29342
|
+
Diagnostic6.superCallZeroArgForm = () => getRawString("Diagnostic.superCallZeroArgForm");
|
|
29343
|
+
Diagnostic6.symbolIsUnbound = () => new ParameterizedString(getRawString("Diagnostic.symbolIsUnbound"));
|
|
29344
|
+
Diagnostic6.symbolIsUndefined = () => new ParameterizedString(getRawString("Diagnostic.symbolIsUndefined"));
|
|
29345
|
+
Diagnostic6.symbolIsPossiblyUnbound = () => new ParameterizedString(getRawString("Diagnostic.symbolIsPossiblyUnbound"));
|
|
29346
|
+
Diagnostic6.symbolOverridden = () => new ParameterizedString(getRawString("Diagnostic.symbolOverridden"));
|
|
29347
|
+
Diagnostic6.totalOrderingMissingMethod = () => getRawString("Diagnostic.totalOrderingMissingMethod");
|
|
29348
|
+
Diagnostic6.trailingCommaInFromImport = () => getRawString("Diagnostic.trailingCommaInFromImport");
|
|
29349
|
+
Diagnostic6.tryWithoutExcept = () => getRawString("Diagnostic.tryWithoutExcept");
|
|
29350
|
+
Diagnostic6.tupleAssignmentMismatch = () => new ParameterizedString(getRawString("Diagnostic.tupleAssignmentMismatch"));
|
|
29351
|
+
Diagnostic6.tupleInAnnotation = () => getRawString("Diagnostic.tupleInAnnotation");
|
|
29352
|
+
Diagnostic6.tupleIndexOutOfRange = () => new ParameterizedString(getRawString("Diagnostic.tupleIndexOutOfRange"));
|
|
29353
|
+
Diagnostic6.typeAliasIsRecursiveDirect = () => new ParameterizedString(getRawString("Diagnostic.typeAliasIsRecursiveDirect"));
|
|
29354
|
+
Diagnostic6.typeAliasIsRecursiveIndirect = () => new ParameterizedString(getRawString("Diagnostic.typeAliasIsRecursiveIndirect"));
|
|
29355
|
+
Diagnostic6.typeAliasNotInModuleOrClass = () => getRawString("Diagnostic.typeAliasNotInModuleOrClass");
|
|
29356
|
+
Diagnostic6.typeAliasRedeclared = () => new ParameterizedString(getRawString("Diagnostic.typeAliasRedeclared"));
|
|
29357
|
+
Diagnostic6.typeAliasStatementIllegal = () => getRawString("Diagnostic.typeAliasStatementIllegal");
|
|
29358
|
+
Diagnostic6.typeAnnotationCall = () => getRawString("Diagnostic.typeAnnotationCall");
|
|
29359
|
+
Diagnostic6.typeAnnotationVariable = () => getRawString("Diagnostic.typeAnnotationVariable");
|
|
29360
|
+
Diagnostic6.typeArgListExpected = () => getRawString("Diagnostic.typeArgListExpected");
|
|
29361
|
+
Diagnostic6.typeArgListNotAllowed = () => getRawString("Diagnostic.typeArgListNotAllowed");
|
|
29362
|
+
Diagnostic6.typeArgsExpectingNone = () => new ParameterizedString(getRawString("Diagnostic.typeArgsExpectingNone"));
|
|
29363
|
+
Diagnostic6.typeArgsMismatchOne = () => new ParameterizedString(getRawString("Diagnostic.typeArgsMismatchOne"));
|
|
29364
|
+
Diagnostic6.typeArgsMissingForAlias = () => new ParameterizedString(getRawString("Diagnostic.typeArgsMissingForAlias"));
|
|
29365
|
+
Diagnostic6.typeArgsMissingForClass = () => new ParameterizedString(getRawString("Diagnostic.typeArgsMissingForClass"));
|
|
29366
|
+
Diagnostic6.typeArgsTooFew = () => new ParameterizedString(getRawString("Diagnostic.typeArgsTooFew"));
|
|
29367
|
+
Diagnostic6.typeArgsTooMany = () => new ParameterizedString(getRawString("Diagnostic.typeArgsTooMany"));
|
|
29368
|
+
Diagnostic6.typeAssignmentMismatch = () => new ParameterizedString(getRawString("Diagnostic.typeAssignmentMismatch"));
|
|
29369
|
+
Diagnostic6.typeCallNotAllowed = () => getRawString("Diagnostic.typeCallNotAllowed");
|
|
29370
|
+
Diagnostic6.typeCommentDeprecated = () => getRawString("Diagnostic.typeCommentDeprecated");
|
|
29371
|
+
Diagnostic6.typedDictAccess = () => getRawString("Diagnostic.typedDictAccess");
|
|
29372
|
+
Diagnostic6.typedDictBadVar = () => getRawString("Diagnostic.typedDictBadVar");
|
|
29373
|
+
Diagnostic6.typedDictBaseClass = () => getRawString("Diagnostic.typedDictBaseClass");
|
|
29374
|
+
Diagnostic6.typedDictDelete = () => getRawString("Diagnostic.typedDictDelete");
|
|
29375
|
+
Diagnostic6.typedDictEmptyName = () => getRawString("Diagnostic.typedDictEmptyName");
|
|
29376
|
+
Diagnostic6.typedDictEntryName = () => getRawString("Diagnostic.typedDictEntryName");
|
|
29377
|
+
Diagnostic6.typedDictEntryUnique = () => getRawString("Diagnostic.typedDictEntryUnique");
|
|
29378
|
+
Diagnostic6.typedDictExtraArgs = () => getRawString("Diagnostic.typedDictExtraArgs");
|
|
29379
|
+
Diagnostic6.typedDictFieldRedefinition = () => new ParameterizedString(getRawString("Diagnostic.typedDictFieldRedefinition"));
|
|
29380
|
+
Diagnostic6.typedDictFirstArg = () => getRawString("Diagnostic.typedDictFirstArg");
|
|
29381
|
+
Diagnostic6.typedDictSecondArgDict = () => getRawString("Diagnostic.typedDictSecondArgDict");
|
|
29382
|
+
Diagnostic6.typedDictSecondArgDictEntry = () => getRawString("Diagnostic.typedDictSecondArgDictEntry");
|
|
29383
|
+
Diagnostic6.typedDictSet = () => getRawString("Diagnostic.typedDictSet");
|
|
29384
|
+
Diagnostic6.typedDictTotalParam = () => getRawString("Diagnostic.typedDictTotalParam");
|
|
29385
|
+
Diagnostic6.typeExpectedClass = () => new ParameterizedString(getRawString("Diagnostic.typeExpectedClass"));
|
|
29386
|
+
Diagnostic6.typeGuardArgCount = () => getRawString("Diagnostic.typeGuardArgCount");
|
|
29387
|
+
Diagnostic6.typeNotAwaitable = () => new ParameterizedString(getRawString("Diagnostic.typeNotAwaitable"));
|
|
29388
|
+
Diagnostic6.typeNotCallable = () => new ParameterizedString(getRawString("Diagnostic.typeNotCallable"));
|
|
29389
|
+
Diagnostic6.typeNotIntantiable = () => new ParameterizedString(getRawString("Diagnostic.typeNotIntantiable"));
|
|
29390
|
+
Diagnostic6.typeNotIterable = () => new ParameterizedString(getRawString("Diagnostic.typeNotIterable"));
|
|
29391
|
+
Diagnostic6.typeNotSpecializable = () => new ParameterizedString(getRawString("Diagnostic.typeNotSpecializable"));
|
|
29392
|
+
Diagnostic6.typeNotSubscriptable = () => new ParameterizedString(getRawString("Diagnostic.typeNotSubscriptable"));
|
|
29393
|
+
Diagnostic6.typeNotUsableWith = () => new ParameterizedString(getRawString("Diagnostic.typeNotUsableWith"));
|
|
29394
|
+
Diagnostic6.typeNotSupportBinaryOperator = () => new ParameterizedString(getRawString("Diagnostic.typeNotSupportBinaryOperator"));
|
|
29395
|
+
Diagnostic6.typeNotSupportBinaryOperatorBidirectional = () => new ParameterizedString(getRawString("Diagnostic.typeNotSupportBinaryOperatorBidirectional"));
|
|
29396
|
+
Diagnostic6.typeNotSupportUnaryOperator = () => new ParameterizedString(getRawString("Diagnostic.typeNotSupportUnaryOperator"));
|
|
29397
|
+
Diagnostic6.typeNotSupportUnaryOperatorBidirectional = () => new ParameterizedString(getRawString("Diagnostic.typeNotSupportUnaryOperatorBidirectional"));
|
|
29398
|
+
Diagnostic6.typeParameterBoundNotAllowed = () => getRawString("Diagnostic.typeParameterBoundNotAllowed");
|
|
29399
|
+
Diagnostic6.typeParameterConstraintTuple = () => getRawString("Diagnostic.typeParameterConstraintTuple");
|
|
29400
|
+
Diagnostic6.typeParameterExistingTypeParameter = () => new ParameterizedString(getRawString("Diagnostic.typeParameterExistingTypeParameter"));
|
|
29401
|
+
Diagnostic6.typeParametersMissing = () => getRawString("Diagnostic.typeParametersMissing");
|
|
29402
|
+
Diagnostic6.typeParameterNotDeclared = () => new ParameterizedString(getRawString("Diagnostic.typeParameterNotDeclared"));
|
|
29403
|
+
Diagnostic6.typeParameterOutOfScope = () => new ParameterizedString(getRawString("Diagnostic.typeParameterOutOfScope"));
|
|
29404
|
+
Diagnostic6.typePartiallyUnknown = () => new ParameterizedString(getRawString("Diagnostic.typePartiallyUnknown"));
|
|
29405
|
+
Diagnostic6.typeUnknown = () => new ParameterizedString(getRawString("Diagnostic.typeUnknown"));
|
|
29406
|
+
Diagnostic6.typeVarAssignedName = () => new ParameterizedString(getRawString("Diagnostic.typeVarAssignedName"));
|
|
29407
|
+
Diagnostic6.typeVarAssignmentMismatch = () => new ParameterizedString(getRawString("Diagnostic.typeVarAssignmentMismatch"));
|
|
29408
|
+
Diagnostic6.typeVarBoundAndConstrained = () => getRawString("Diagnostic.typeVarBoundAndConstrained");
|
|
29409
|
+
Diagnostic6.typeVarBoundGeneric = () => getRawString("Diagnostic.typeVarBoundGeneric");
|
|
29410
|
+
Diagnostic6.typeVarConstraintGeneric = () => getRawString("Diagnostic.typeVarConstraintGeneric");
|
|
29411
|
+
Diagnostic6.typeVarDefaultBoundMismatch = () => getRawString("Diagnostic.typeVarDefaultBoundMismatch");
|
|
29412
|
+
Diagnostic6.typeVarDefaultConstraintMismatch = () => getRawString("Diagnostic.typeVarDefaultConstraintMismatch");
|
|
29413
|
+
Diagnostic6.typeVarFirstArg = () => getRawString("Diagnostic.typeVarFirstArg");
|
|
29414
|
+
Diagnostic6.typeVarNoMember = () => new ParameterizedString(getRawString("Diagnostic.typeVarNoMember"));
|
|
29415
|
+
Diagnostic6.typeVarNotSubscriptable = () => new ParameterizedString(getRawString("Diagnostic.typeVarNotSubscriptable"));
|
|
29416
|
+
Diagnostic6.typeVarNotUsedByOuterScope = () => new ParameterizedString(getRawString("Diagnostic.typeVarNotUsedByOuterScope"));
|
|
29417
|
+
Diagnostic6.typeVarPossiblyUnsolvable = () => new ParameterizedString(getRawString("Diagnostic.typeVarPossiblyUnsolvable"));
|
|
29418
|
+
Diagnostic6.typeVarSingleConstraint = () => getRawString("Diagnostic.typeVarSingleConstraint");
|
|
29419
|
+
Diagnostic6.typeVarsNotInGenericOrProtocol = () => getRawString("Diagnostic.typeVarsNotInGenericOrProtocol");
|
|
29420
|
+
Diagnostic6.typeVarTupleContext = () => getRawString("Diagnostic.typeVarTupleContext");
|
|
29421
|
+
Diagnostic6.typeVarTupleDefaultNotUnpacked = () => getRawString("Diagnostic.typeVarTupleDefaultNotUnpacked");
|
|
29422
|
+
Diagnostic6.typeVarTupleMustBeUnpacked = () => getRawString("Diagnostic.typeVarTupleMustBeUnpacked");
|
|
29423
|
+
Diagnostic6.typeVarTupleUnknownParam = () => new ParameterizedString(getRawString("Diagnostic.typeVarTupleUnknownParam"));
|
|
29424
|
+
Diagnostic6.typeVarUnknownParam = () => new ParameterizedString(getRawString("Diagnostic.typeVarUnknownParam"));
|
|
29425
|
+
Diagnostic6.typeVarUsedByOuterScope = () => new ParameterizedString(getRawString("Diagnostic.typeVarUsedByOuterScope"));
|
|
29426
|
+
Diagnostic6.typeVarUsedOnlyOnce = () => new ParameterizedString(getRawString("Diagnostic.typeVarUsedOnlyOnce"));
|
|
29427
|
+
Diagnostic6.typeVarVariance = () => getRawString("Diagnostic.typeVarVariance");
|
|
29428
|
+
Diagnostic6.unaccessedClass = () => new ParameterizedString(getRawString("Diagnostic.unaccessedClass"));
|
|
29429
|
+
Diagnostic6.unaccessedFunction = () => new ParameterizedString(getRawString("Diagnostic.unaccessedFunction"));
|
|
29430
|
+
Diagnostic6.unaccessedImport = () => new ParameterizedString(getRawString("Diagnostic.unaccessedImport"));
|
|
29431
|
+
Diagnostic6.unaccessedSymbol = () => new ParameterizedString(getRawString("Diagnostic.unaccessedSymbol"));
|
|
29432
|
+
Diagnostic6.unaccessedVariable = () => new ParameterizedString(getRawString("Diagnostic.unaccessedVariable"));
|
|
29433
|
+
Diagnostic6.unannotatedFunctionSkipped = () => new ParameterizedString(getRawString("Diagnostic.unannotatedFunctionSkipped"));
|
|
29434
|
+
Diagnostic6.unexpectedAsyncToken = () => getRawString("Diagnostic.unexpectedAsyncToken");
|
|
29435
|
+
Diagnostic6.unexpectedExprToken = () => getRawString("Diagnostic.unexpectedExprToken");
|
|
29436
|
+
Diagnostic6.unexpectedIndent = () => getRawString("Diagnostic.unexpectedIndent");
|
|
29437
|
+
Diagnostic6.unexpectedUnindent = () => getRawString("Diagnostic.unexpectedUnindent");
|
|
29438
|
+
Diagnostic6.unhashableDictKey = () => getRawString("Diagnostic.unhashableDictKey");
|
|
29439
|
+
Diagnostic6.unhashableSetEntry = () => getRawString("Diagnostic.unhashableSetEntry");
|
|
29440
|
+
Diagnostic6.unionSyntaxIllegal = () => getRawString("Diagnostic.unionSyntaxIllegal");
|
|
29441
|
+
Diagnostic6.unionTypeArgCount = () => getRawString("Diagnostic.unionTypeArgCount");
|
|
29442
|
+
Diagnostic6.uninitializedInstanceVariable = () => new ParameterizedString(getRawString("Diagnostic.uninitializedInstanceVariable"));
|
|
29443
|
+
Diagnostic6.unmatchedEndregionComment = () => getRawString("Diagnostic.unmatchedEndregionComment");
|
|
29444
|
+
Diagnostic6.unmatchedRegionComment = () => getRawString("Diagnostic.unmatchedRegionComment");
|
|
29445
|
+
Diagnostic6.unnecessaryCast = () => new ParameterizedString(getRawString("Diagnostic.unnecessaryCast"));
|
|
29446
|
+
Diagnostic6.unnecessaryIsInstanceAlways = () => new ParameterizedString(getRawString("Diagnostic.unnecessaryIsInstanceAlways"));
|
|
29447
|
+
Diagnostic6.unnecessaryIsSubclassAlways = () => new ParameterizedString(getRawString("Diagnostic.unnecessaryIsSubclassAlways"));
|
|
29448
|
+
Diagnostic6.unnecessaryPyrightIgnore = () => getRawString("Diagnostic.unnecessaryPyrightIgnore");
|
|
29449
|
+
Diagnostic6.unnecessaryPyrightIgnoreRule = () => new ParameterizedString(getRawString("Diagnostic.unnecessaryPyrightIgnoreRule"));
|
|
29450
|
+
Diagnostic6.unnecessaryTypeIgnore = () => getRawString("Diagnostic.unnecessaryTypeIgnore");
|
|
29451
|
+
Diagnostic6.unpackArgCount = () => getRawString("Diagnostic.unpackArgCount");
|
|
29452
|
+
Diagnostic6.unpackedArgInTypeArgument = () => getRawString("Diagnostic.unpackedArgInTypeArgument");
|
|
29453
|
+
Diagnostic6.unpackedArgWithVariadicParam = () => getRawString("Diagnostic.unpackedArgWithVariadicParam");
|
|
29454
|
+
Diagnostic6.unpackedDictArgumentNotMapping = () => getRawString("Diagnostic.unpackedDictArgumentNotMapping");
|
|
29455
|
+
Diagnostic6.unpackedSubscriptIllegal = () => getRawString("Diagnostic.unpackedSubscriptIllegal");
|
|
29456
|
+
Diagnostic6.unpackedTypedDictArgument = () => getRawString("Diagnostic.unpackedTypedDictArgument");
|
|
29457
|
+
Diagnostic6.unpackedTypeVarTupleExpected = () => new ParameterizedString(getRawString("Diagnostic.unpackedTypeVarTupleExpected"));
|
|
29458
|
+
Diagnostic6.unpackExpectedTypedDict = () => getRawString("Diagnostic.unpackExpectedTypedDict");
|
|
29459
|
+
Diagnostic6.unpackExpectedTypeVarTuple = () => getRawString("Diagnostic.unpackExpectedTypeVarTuple");
|
|
29460
|
+
Diagnostic6.unpackIllegalInComprehension = () => getRawString("Diagnostic.unpackIllegalInComprehension");
|
|
29461
|
+
Diagnostic6.unpackInAnnotation = () => getRawString("Diagnostic.unpackInAnnotation");
|
|
29462
|
+
Diagnostic6.unpackInDict = () => getRawString("Diagnostic.unpackInDict");
|
|
29463
|
+
Diagnostic6.unpackInSet = () => getRawString("Diagnostic.unpackInSet");
|
|
29464
|
+
Diagnostic6.unpackNotAllowed = () => getRawString("Diagnostic.unpackNotAllowed");
|
|
29465
|
+
Diagnostic6.unpackOperatorNotAllowed = () => getRawString("Diagnostic.unpackOperatorNotAllowed");
|
|
29466
|
+
Diagnostic6.unpackTuplesIllegal = () => getRawString("Diagnostic.unpackTuplesIllegal");
|
|
29467
|
+
Diagnostic6.unreachableCode = () => getRawString("Diagnostic.unreachableCode");
|
|
29468
|
+
Diagnostic6.unreachableExcept = () => getRawString("Diagnostic.unreachableExcept");
|
|
29469
|
+
Diagnostic6.unsupportedDunderAllOperation = () => getRawString("Diagnostic.unsupportedDunderAllOperation");
|
|
29470
|
+
Diagnostic6.unusedCallResult = () => new ParameterizedString(getRawString("Diagnostic.unusedCallResult"));
|
|
29471
|
+
Diagnostic6.unusedCoroutine = () => getRawString("Diagnostic.unusedCoroutine");
|
|
29472
|
+
Diagnostic6.unusedExpression = () => getRawString("Diagnostic.unusedExpression");
|
|
29473
|
+
Diagnostic6.varAnnotationIllegal = () => getRawString("Diagnostic.varAnnotationIllegal");
|
|
29474
|
+
Diagnostic6.variableFinalOverride = () => new ParameterizedString(getRawString("Diagnostic.variableFinalOverride"));
|
|
29475
|
+
Diagnostic6.variadicTypeArgsTooMany = () => getRawString("Diagnostic.variadicTypeArgsTooMany");
|
|
29476
|
+
Diagnostic6.variadicTypeParamTooManyAlias = () => new ParameterizedString(getRawString("Diagnostic.variadicTypeParamTooManyAlias"));
|
|
29477
|
+
Diagnostic6.variadicTypeParamTooManyClass = () => new ParameterizedString(getRawString("Diagnostic.variadicTypeParamTooManyClass"));
|
|
29478
|
+
Diagnostic6.walrusIllegal = () => getRawString("Diagnostic.walrusIllegal");
|
|
29479
|
+
Diagnostic6.walrusNotAllowed = () => getRawString("Diagnostic.walrusNotAllowed");
|
|
29480
|
+
Diagnostic6.wildcardInFunction = () => getRawString("Diagnostic.wildcardInFunction");
|
|
29481
|
+
Diagnostic6.wildcardLibraryImport = () => getRawString("Diagnostic.wildcardLibraryImport");
|
|
29482
|
+
Diagnostic6.yieldFromIllegal = () => getRawString("Diagnostic.yieldFromIllegal");
|
|
29483
|
+
Diagnostic6.yieldFromOutsideAsync = () => getRawString("Diagnostic.yieldFromOutsideAsync");
|
|
29484
|
+
Diagnostic6.yieldOutsideFunction = () => getRawString("Diagnostic.yieldOutsideFunction");
|
|
29485
|
+
Diagnostic6.yieldTypeMismatch = () => new ParameterizedString(getRawString("Diagnostic.yieldTypeMismatch"));
|
|
29486
|
+
Diagnostic6.yieldWithinListCompr = () => getRawString("Diagnostic.yieldWithinListCompr");
|
|
29487
|
+
Diagnostic6.zeroCaseStatementsFound = () => getRawString("Diagnostic.zeroCaseStatementsFound");
|
|
29488
|
+
Diagnostic6.zeroLengthTupleNotAllowed = () => getRawString("Diagnostic.zeroLengthTupleNotAllowed");
|
|
29489
|
+
})(Diagnostic5 = Localizer2.Diagnostic || (Localizer2.Diagnostic = {}));
|
|
29475
29490
|
let DiagnosticAddendum;
|
|
29476
29491
|
(function(DiagnosticAddendum2) {
|
|
29477
29492
|
DiagnosticAddendum2.argParam = () => new ParameterizedString(getRawString("DiagnosticAddendum.argParam"));
|
|
@@ -30651,9 +30666,9 @@ var require_typePrinter = __commonJS({
|
|
|
30651
30666
|
if (type.paramSpecAccess) {
|
|
30652
30667
|
return `${type.details.name}.${type.paramSpecAccess}`;
|
|
30653
30668
|
}
|
|
30654
|
-
return `${
|
|
30669
|
+
return `${_getReadableTypeVarName(type, (printTypeFlags & 256) !== 0)}`;
|
|
30655
30670
|
}
|
|
30656
|
-
let typeVarName =
|
|
30671
|
+
let typeVarName = _getReadableTypeVarName(type, (printTypeFlags & 256) !== 0);
|
|
30657
30672
|
if (type.isVariadicUnpacked) {
|
|
30658
30673
|
typeVarName = _printUnpack(typeVarName, printTypeFlags);
|
|
30659
30674
|
}
|
|
@@ -30914,6 +30929,12 @@ var require_typePrinter = __commonJS({
|
|
|
30914
30929
|
}
|
|
30915
30930
|
return textToWrap;
|
|
30916
30931
|
}
|
|
30932
|
+
function _getReadableTypeVarName(type, usePythonSyntax) {
|
|
30933
|
+
if (usePythonSyntax) {
|
|
30934
|
+
return type.details.name;
|
|
30935
|
+
}
|
|
30936
|
+
return types_1.TypeVarType.getReadableName(type);
|
|
30937
|
+
}
|
|
30917
30938
|
}
|
|
30918
30939
|
});
|
|
30919
30940
|
|
|
@@ -32378,7 +32399,7 @@ var require_typeDocStringUtils = __commonJS({
|
|
|
32378
32399
|
return result;
|
|
32379
32400
|
};
|
|
32380
32401
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32381
|
-
exports.getVariableDocString = exports.getFunctionOrClassDeclDocString = exports.getClassDocString = exports.getModuleDocString = exports.getVariableInStubFileDocStrings = exports.getPropertyDocStringInherited = exports.getOverloadedFunctionDocStringsInherited = exports.getFunctionDocStringInherited = void 0;
|
|
32402
|
+
exports.getVariableDocString = exports.getFunctionOrClassDeclDocString = exports.getClassDocString = exports.getModuleDocString = exports.getModuleNodeDocString = exports.getVariableInStubFileDocStrings = exports.getPropertyDocStringInherited = exports.getOverloadedFunctionDocStringsInherited = exports.getFunctionDocStringInherited = void 0;
|
|
32382
32403
|
var declaration_1 = require_declaration();
|
|
32383
32404
|
var ParseTreeUtils = __importStar(require_parseTreeUtils());
|
|
32384
32405
|
var sourceMapper_1 = require_sourceMapper();
|
|
@@ -32472,12 +32493,24 @@ var require_typeDocStringUtils = __commonJS({
|
|
|
32472
32493
|
return docStrings;
|
|
32473
32494
|
}
|
|
32474
32495
|
exports.getVariableInStubFileDocStrings = getVariableInStubFileDocStrings;
|
|
32496
|
+
function getModuleNodeDocString(modules) {
|
|
32497
|
+
for (const module3 of modules) {
|
|
32498
|
+
if (module3.statements) {
|
|
32499
|
+
const docString = ParseTreeUtils.getDocString(module3.statements);
|
|
32500
|
+
if (docString) {
|
|
32501
|
+
return docString;
|
|
32502
|
+
}
|
|
32503
|
+
}
|
|
32504
|
+
}
|
|
32505
|
+
return void 0;
|
|
32506
|
+
}
|
|
32507
|
+
exports.getModuleNodeDocString = getModuleNodeDocString;
|
|
32475
32508
|
function getModuleDocString(type, resolvedDecl, sourceMapper) {
|
|
32476
32509
|
let docString = type.docString;
|
|
32477
32510
|
if (!docString) {
|
|
32478
32511
|
if (resolvedDecl && (0, sourceMapper_1.isStubFile)(resolvedDecl.path)) {
|
|
32479
32512
|
const modules = sourceMapper.findModules(resolvedDecl.path);
|
|
32480
|
-
docString =
|
|
32513
|
+
docString = getModuleNodeDocString(modules);
|
|
32481
32514
|
}
|
|
32482
32515
|
}
|
|
32483
32516
|
return docString;
|
|
@@ -32611,17 +32644,6 @@ var require_typeDocStringUtils = __commonJS({
|
|
|
32611
32644
|
}
|
|
32612
32645
|
return void 0;
|
|
32613
32646
|
}
|
|
32614
|
-
function _getModuleNodeDocString(modules) {
|
|
32615
|
-
for (const module3 of modules) {
|
|
32616
|
-
if (module3.statements) {
|
|
32617
|
-
const docString = ParseTreeUtils.getDocString(module3.statements);
|
|
32618
|
-
if (docString) {
|
|
32619
|
-
return docString;
|
|
32620
|
-
}
|
|
32621
|
-
}
|
|
32622
|
-
}
|
|
32623
|
-
return void 0;
|
|
32624
|
-
}
|
|
32625
32647
|
}
|
|
32626
32648
|
});
|
|
32627
32649
|
|
|
@@ -33027,6 +33049,9 @@ var require_completionProvider = __commonJS({
|
|
|
33027
33049
|
return result;
|
|
33028
33050
|
}
|
|
33029
33051
|
}
|
|
33052
|
+
if (curNode.nodeType === 31 && this._options.triggerCharacter === "[") {
|
|
33053
|
+
return void 0;
|
|
33054
|
+
}
|
|
33030
33055
|
if (curNode.nodeType === 22) {
|
|
33031
33056
|
return this._getImportFromCompletions(curNode, priorWord);
|
|
33032
33057
|
}
|
|
@@ -33292,6 +33317,19 @@ var require_completionProvider = __commonJS({
|
|
|
33292
33317
|
if (!classResults) {
|
|
33293
33318
|
return void 0;
|
|
33294
33319
|
}
|
|
33320
|
+
const classVariableName = parseNode.parent.valueExpression.value;
|
|
33321
|
+
const classMember = (0, typeUtils_1.lookUpClassMember)(classResults.classType, classVariableName, 8 | 1);
|
|
33322
|
+
if (classMember) {
|
|
33323
|
+
const memberType = this._evaluator.getTypeOfMember(classMember);
|
|
33324
|
+
const text2 = this._evaluator.printType(memberType, {
|
|
33325
|
+
enforcePythonSyntax: true,
|
|
33326
|
+
expandTypeAlias: false
|
|
33327
|
+
});
|
|
33328
|
+
this._addNameToCompletions(text2, vscode_languageserver_1.CompletionItemKind.Reference, priorWord, completionMap, {
|
|
33329
|
+
sortText: this._makeSortText(SortCategory.LikelyKeyword, text2)
|
|
33330
|
+
});
|
|
33331
|
+
return;
|
|
33332
|
+
}
|
|
33295
33333
|
const symbolTable = /* @__PURE__ */ new Map();
|
|
33296
33334
|
for (const mroClass of classResults.classType.details.mro) {
|
|
33297
33335
|
if (mroClass === classResults.classType) {
|
|
@@ -33301,7 +33339,6 @@ var require_completionProvider = __commonJS({
|
|
|
33301
33339
|
(0, typeUtils_1.getMembersForClass)(mroClass, symbolTable, false);
|
|
33302
33340
|
}
|
|
33303
33341
|
}
|
|
33304
|
-
const classVariableName = parseNode.parent.valueExpression.value;
|
|
33305
33342
|
const symbol = symbolTable.get(classVariableName);
|
|
33306
33343
|
if (!symbol) {
|
|
33307
33344
|
return;
|
|
@@ -33834,9 +33871,6 @@ ${methodBody}`;
|
|
|
33834
33871
|
}
|
|
33835
33872
|
_getIndexerKeys(indexNode, invocationNode) {
|
|
33836
33873
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
33837
|
-
if (indexNode.baseExpression.nodeType !== 38) {
|
|
33838
|
-
return [];
|
|
33839
|
-
}
|
|
33840
33874
|
const baseType = this._evaluator.getType(indexNode.baseExpression);
|
|
33841
33875
|
if (!baseType || !(0, types_1.isClassInstance)(baseType)) {
|
|
33842
33876
|
return [];
|
|
@@ -33854,6 +33888,9 @@ ${methodBody}`;
|
|
|
33854
33888
|
return keys2;
|
|
33855
33889
|
}
|
|
33856
33890
|
}
|
|
33891
|
+
if (indexNode.baseExpression.nodeType !== 38) {
|
|
33892
|
+
return [];
|
|
33893
|
+
}
|
|
33857
33894
|
const declarations = (_a = this._evaluator.getDeclarationsForNameNode(indexNode.baseExpression)) !== null && _a !== void 0 ? _a : [];
|
|
33858
33895
|
const declaration = declarations.length > 0 ? declarations[0] : void 0;
|
|
33859
33896
|
if (!declaration || declaration.type !== 1 && declaration.type !== 2) {
|
|
@@ -35032,7 +35069,7 @@ var require_aliasDeclarationUtils = __commonJS({
|
|
|
35032
35069
|
let curDeclaration = declaration;
|
|
35033
35070
|
const alreadyVisited = [];
|
|
35034
35071
|
let isPrivate = false;
|
|
35035
|
-
let
|
|
35072
|
+
let sawPyTypedTransition = false;
|
|
35036
35073
|
let privatePyTypedImported;
|
|
35037
35074
|
let privatePyTypedImporter;
|
|
35038
35075
|
while (true) {
|
|
@@ -35093,14 +35130,17 @@ var require_aliasDeclarationUtils = __commonJS({
|
|
|
35093
35130
|
} else {
|
|
35094
35131
|
curDeclaration = declarations[declarations.length - 1];
|
|
35095
35132
|
}
|
|
35096
|
-
if (
|
|
35097
|
-
|
|
35098
|
-
|
|
35099
|
-
|
|
35100
|
-
|
|
35101
|
-
|
|
35102
|
-
|
|
35103
|
-
|
|
35133
|
+
if (lookupResult === null || lookupResult === void 0 ? void 0 : lookupResult.isInPyTypedPackage) {
|
|
35134
|
+
if (!sawPyTypedTransition) {
|
|
35135
|
+
if (symbol.isPrivatePyTypedImport()) {
|
|
35136
|
+
privatePyTypedImporter = curDeclaration === null || curDeclaration === void 0 ? void 0 : curDeclaration.moduleName;
|
|
35137
|
+
}
|
|
35138
|
+
sawPyTypedTransition = true;
|
|
35139
|
+
} else {
|
|
35140
|
+
if (!symbol.isPrivatePyTypedImport()) {
|
|
35141
|
+
privatePyTypedImported = privatePyTypedImported !== null && privatePyTypedImported !== void 0 ? privatePyTypedImported : curDeclaration === null || curDeclaration === void 0 ? void 0 : curDeclaration.moduleName;
|
|
35142
|
+
}
|
|
35143
|
+
}
|
|
35104
35144
|
}
|
|
35105
35145
|
if (alreadyVisited.find((decl) => decl === curDeclaration)) {
|
|
35106
35146
|
if (curDeclaration.path === declaration.path && curDeclaration.type === 8 && curDeclaration.submoduleFallback) {
|
|
@@ -35337,7 +35377,7 @@ var require_documentSymbolProvider = __commonJS({
|
|
|
35337
35377
|
if (symbol.isIgnoredForProtocolMatch()) {
|
|
35338
35378
|
return;
|
|
35339
35379
|
}
|
|
35340
|
-
if (options.indexingForAutoImportMode && !options.
|
|
35380
|
+
if (options.indexingForAutoImportMode && !options.includeAllSymbols && !fileInfo.isStubFile && !fileInfo.isInPyTypedPackage && !symbol.isInDunderAll()) {
|
|
35341
35381
|
return;
|
|
35342
35382
|
}
|
|
35343
35383
|
let declaration = (0, symbolUtils_1.getLastTypedDeclaredForSymbol)(symbol);
|
|
@@ -35453,6 +35493,7 @@ var require_hoverProvider = __commonJS({
|
|
|
35453
35493
|
var vscode_languageserver_1 = require_main3();
|
|
35454
35494
|
var docStringConversion_1 = require_docStringConversion();
|
|
35455
35495
|
var ParseTreeUtils = __importStar(require_parseTreeUtils());
|
|
35496
|
+
var typeDocStringUtils_1 = require_typeDocStringUtils();
|
|
35456
35497
|
var types_1 = require_types();
|
|
35457
35498
|
var typeUtils_1 = require_typeUtils();
|
|
35458
35499
|
var cancellationUtils_1 = require_cancellationUtils();
|
|
@@ -35611,10 +35652,16 @@ var require_hoverProvider = __commonJS({
|
|
|
35611
35652
|
${(0, tooltipUtils_1.getOverloadedFunctionTooltip)(type, evaluator)}`,
|
|
35612
35653
|
true
|
|
35613
35654
|
);
|
|
35655
|
+
} else if ((0, types_1.isFunction)(type)) {
|
|
35656
|
+
this._addResultsPart(
|
|
35657
|
+
parts,
|
|
35658
|
+
`(${label}) ${node.value}${sep}${evaluator.printType(type)}`,
|
|
35659
|
+
true
|
|
35660
|
+
);
|
|
35614
35661
|
} else {
|
|
35615
35662
|
this._addResultsPart(
|
|
35616
35663
|
parts,
|
|
35617
|
-
`(${label})
|
|
35664
|
+
`(${label}) ${node.value}: ${evaluator.printType(type)}`,
|
|
35618
35665
|
true
|
|
35619
35666
|
);
|
|
35620
35667
|
}
|
|
@@ -35623,8 +35670,7 @@ ${(0, tooltipUtils_1.getOverloadedFunctionTooltip)(type, evaluator)}`,
|
|
|
35623
35670
|
break;
|
|
35624
35671
|
}
|
|
35625
35672
|
case 8: {
|
|
35626
|
-
this.
|
|
35627
|
-
this._addDocumentationPart(format, sourceMapper, parts, node, evaluator, resolvedDecl);
|
|
35673
|
+
this._addModuleParts(format, sourceMapper, parts, node.value, [resolvedDecl.path]);
|
|
35628
35674
|
break;
|
|
35629
35675
|
}
|
|
35630
35676
|
case 4: {
|
|
@@ -35734,6 +35780,16 @@ ${(0, tooltipUtils_1.getOverloadedFunctionTooltip)(type, evaluator)}`,
|
|
|
35734
35780
|
this._addDocumentationPartForType(format, sourceMapper, parts, type, resolvedDecl, evaluator);
|
|
35735
35781
|
}
|
|
35736
35782
|
}
|
|
35783
|
+
static _addModuleParts(format, sourceMapper, parts, name, resolvedPaths) {
|
|
35784
|
+
this._addResultsPart(parts, "(module) " + name, true);
|
|
35785
|
+
const modules = resolvedPaths.map((p) => sourceMapper.findModules(p)).flat();
|
|
35786
|
+
const docString = (0, typeDocStringUtils_1.getModuleNodeDocString)(modules);
|
|
35787
|
+
if (docString) {
|
|
35788
|
+
this._addDocumentationResultsPart(format, parts, docString);
|
|
35789
|
+
return true;
|
|
35790
|
+
}
|
|
35791
|
+
return false;
|
|
35792
|
+
}
|
|
35737
35793
|
static _addDocumentationPartForType(format, sourceMapper, parts, type, resolvedDecl, evaluator) {
|
|
35738
35794
|
const docString = (0, tooltipUtils_1.getDocumentationPartsForTypeAndDecl)(sourceMapper, type, resolvedDecl, evaluator);
|
|
35739
35795
|
if (docString) {
|
|
@@ -38253,7 +38309,7 @@ var require_binder = __commonJS({
|
|
|
38253
38309
|
node,
|
|
38254
38310
|
path: pathOfLastSubmodule,
|
|
38255
38311
|
loadSymbolsFromPath: false,
|
|
38256
|
-
range:
|
|
38312
|
+
range: (0, textRange_1.getEmptyRange)(),
|
|
38257
38313
|
usesLocalName: !!importAlias,
|
|
38258
38314
|
moduleName: importInfo.importName,
|
|
38259
38315
|
firstNamePart: firstNamePartValue,
|
|
@@ -38265,7 +38321,7 @@ var require_binder = __commonJS({
|
|
|
38265
38321
|
node,
|
|
38266
38322
|
path: pathOfLastSubmodule,
|
|
38267
38323
|
loadSymbolsFromPath: true,
|
|
38268
|
-
range:
|
|
38324
|
+
range: (0, textRange_1.getEmptyRange)(),
|
|
38269
38325
|
usesLocalName: !!importAlias,
|
|
38270
38326
|
moduleName: (_a = importInfo === null || importInfo === void 0 ? void 0 : importInfo.importName) !== null && _a !== void 0 ? _a : "",
|
|
38271
38327
|
firstNamePart: firstNamePartValue,
|
|
@@ -44612,7 +44668,7 @@ var require_importResolver = __commonJS({
|
|
|
44612
44668
|
readDir(dirRoot, prefix ? `${prefix}.${entry.name}` : entry.name);
|
|
44613
44669
|
} else if (entry.name.includes(".py")) {
|
|
44614
44670
|
const stripped = (0, pathUtils_1.stripFileExtension)(entry.name);
|
|
44615
|
-
if (stripped
|
|
44671
|
+
if (!stripped.startsWith("_")) {
|
|
44616
44672
|
cache.add(prefix ? `${prefix}.${stripped}` : stripped);
|
|
44617
44673
|
}
|
|
44618
44674
|
}
|
|
@@ -45219,6 +45275,9 @@ var require_constraintSolver = __commonJS({
|
|
|
45219
45275
|
}
|
|
45220
45276
|
}
|
|
45221
45277
|
}
|
|
45278
|
+
if ((0, types_1.isTypeVar)(srcType) && srcType.details.isVariadic && srcType.isVariadicUnpacked && !srcType.isVariadicInUnion && !destType.details.isVariadic) {
|
|
45279
|
+
srcType = types_1.TypeVarType.cloneForUnpacked(srcType, true);
|
|
45280
|
+
}
|
|
45222
45281
|
if (types_1.TypeBase.isInstantiable(destType) && (0, types_1.isClassInstance)(srcType) && types_1.ClassType.isBuiltIn(srcType, "type") && !srcType.typeArguments) {
|
|
45223
45282
|
srcType = types_1.AnyType.create();
|
|
45224
45283
|
}
|
|
@@ -45573,6 +45632,7 @@ var require_constraintSolver = __commonJS({
|
|
|
45573
45632
|
name: p.name,
|
|
45574
45633
|
isNameSynthesized: p.isNameSynthesized,
|
|
45575
45634
|
hasDefault: !!p.hasDefault,
|
|
45635
|
+
defaultValueExpression: p.defaultValueExpression,
|
|
45576
45636
|
type: types_1.FunctionType.getEffectiveParameterType(functionSrcType, index)
|
|
45577
45637
|
};
|
|
45578
45638
|
return paramSpecEntry;
|
|
@@ -50138,6 +50198,7 @@ var require_dataClasses = __commonJS({
|
|
|
50138
50198
|
keywordOnlyParams: false,
|
|
50139
50199
|
generateEq: true,
|
|
50140
50200
|
generateOrder: false,
|
|
50201
|
+
frozen: false,
|
|
50141
50202
|
fieldDescriptorNames: []
|
|
50142
50203
|
};
|
|
50143
50204
|
const fileInfo = AnalyzerNodeInfo.getFileInfo(node);
|
|
@@ -50174,6 +50235,15 @@ var require_dataClasses = __commonJS({
|
|
|
50174
50235
|
behaviors.generateOrder = value;
|
|
50175
50236
|
break;
|
|
50176
50237
|
}
|
|
50238
|
+
case "frozen_default": {
|
|
50239
|
+
const value = (0, staticExpressions_1.evaluateStaticBoolExpression)(arg.valueExpression, fileInfo.executionEnvironment, fileInfo.definedConstants);
|
|
50240
|
+
if (value === void 0) {
|
|
50241
|
+
evaluator.addError(localize_1.Localizer.Diagnostic.dataClassTransformExpectedBoolLiteral(), arg.valueExpression);
|
|
50242
|
+
return;
|
|
50243
|
+
}
|
|
50244
|
+
behaviors.frozen = value;
|
|
50245
|
+
break;
|
|
50246
|
+
}
|
|
50177
50247
|
case "field_descriptors":
|
|
50178
50248
|
case "field_specifiers": {
|
|
50179
50249
|
const valueType = evaluator.getTypeOfExpression(arg.valueExpression).type;
|
|
@@ -50222,6 +50292,7 @@ var require_dataClasses = __commonJS({
|
|
|
50222
50292
|
keywordOnlyParams: false,
|
|
50223
50293
|
generateEq: true,
|
|
50224
50294
|
generateOrder: false,
|
|
50295
|
+
frozen: false,
|
|
50225
50296
|
fieldDescriptorNames: ["dataclasses.field", "dataclasses.Field"]
|
|
50226
50297
|
};
|
|
50227
50298
|
}
|
|
@@ -50305,7 +50376,7 @@ var require_dataClasses = __commonJS({
|
|
|
50305
50376
|
break;
|
|
50306
50377
|
}
|
|
50307
50378
|
}
|
|
50308
|
-
function applyDataClassClassBehaviorOverrides(evaluator, errorNode, classType, args) {
|
|
50379
|
+
function applyDataClassClassBehaviorOverrides(evaluator, errorNode, classType, args, defaultBehaviors) {
|
|
50309
50380
|
let sawFrozenArg = false;
|
|
50310
50381
|
args.forEach((arg) => {
|
|
50311
50382
|
if (arg.valueExpression && arg.name) {
|
|
@@ -50316,7 +50387,7 @@ var require_dataClasses = __commonJS({
|
|
|
50316
50387
|
}
|
|
50317
50388
|
});
|
|
50318
50389
|
if (!sawFrozenArg) {
|
|
50319
|
-
applyDataClassBehaviorOverrideValue(evaluator, errorNode, classType, "frozen",
|
|
50390
|
+
applyDataClassBehaviorOverrideValue(evaluator, errorNode, classType, "frozen", defaultBehaviors.frozen);
|
|
50320
50391
|
}
|
|
50321
50392
|
}
|
|
50322
50393
|
exports.applyDataClassClassBehaviorOverrides = applyDataClassClassBehaviorOverrides;
|
|
@@ -50332,13 +50403,15 @@ var require_dataClasses = __commonJS({
|
|
|
50332
50403
|
if (defaultBehaviors.generateOrder) {
|
|
50333
50404
|
classType.details.flags |= 64;
|
|
50334
50405
|
}
|
|
50406
|
+
if (defaultBehaviors.frozen) {
|
|
50407
|
+
classType.details.flags |= 8;
|
|
50408
|
+
}
|
|
50335
50409
|
}
|
|
50336
50410
|
exports.applyDataClassDefaultBehaviors = applyDataClassDefaultBehaviors;
|
|
50337
50411
|
function applyDataClassDecorator(evaluator, errorNode, classType, defaultBehaviors, callNode) {
|
|
50412
|
+
var _a;
|
|
50338
50413
|
applyDataClassDefaultBehaviors(classType, defaultBehaviors);
|
|
50339
|
-
|
|
50340
|
-
applyDataClassClassBehaviorOverrides(evaluator, errorNode, classType, callNode.arguments);
|
|
50341
|
-
}
|
|
50414
|
+
applyDataClassClassBehaviorOverrides(evaluator, errorNode, classType, (_a = callNode === null || callNode === void 0 ? void 0 : callNode.arguments) !== null && _a !== void 0 ? _a : [], defaultBehaviors);
|
|
50342
50415
|
}
|
|
50343
50416
|
exports.applyDataClassDecorator = applyDataClassDecorator;
|
|
50344
50417
|
}
|
|
@@ -51424,8 +51497,10 @@ var require_typeEvaluator = __commonJS({
|
|
|
51424
51497
|
var maxCallSiteReturnTypeCacheSize = 8;
|
|
51425
51498
|
var maxEntriesToUseForInference = 64;
|
|
51426
51499
|
var maxDeclarationsToUseForInference = 64;
|
|
51500
|
+
var maxEffectiveTypeEvaluationAttempts = 16;
|
|
51427
51501
|
var maxOverloadUnionExpansionCount = 64;
|
|
51428
51502
|
var maxInferFunctionReturnRecursionCount = 12;
|
|
51503
|
+
var maxRecursiveTypeAliasRecursionCount = 10;
|
|
51429
51504
|
var verifyTypeCacheEvaluatorFlags = false;
|
|
51430
51505
|
var printExpressionTypes = false;
|
|
51431
51506
|
var maxLiteralMathSubtypeCount = 64;
|
|
@@ -51849,7 +51924,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
51849
51924
|
}
|
|
51850
51925
|
}
|
|
51851
51926
|
if (flags & 65536) {
|
|
51852
|
-
if ((0, typeUtils_1.isTypeAliasPlaceholder)(typeResult.type)) {
|
|
51927
|
+
if ((0, types_1.isTypeVar)(typeResult.type) && (0, typeUtils_1.isTypeAliasPlaceholder)(typeResult.type)) {
|
|
51853
51928
|
typeResult.type.details.illegalRecursionDetected = true;
|
|
51854
51929
|
}
|
|
51855
51930
|
}
|
|
@@ -53000,6 +53075,13 @@ var require_typeEvaluator = __commonJS({
|
|
|
53000
53075
|
if (diagLevel === "none") {
|
|
53001
53076
|
return void 0;
|
|
53002
53077
|
}
|
|
53078
|
+
const fileInfo = AnalyzerNodeInfo.getFileInfo(node);
|
|
53079
|
+
if (!fileInfo.diagnosticRuleSet.analyzeUnannotatedFunctions) {
|
|
53080
|
+
const containingFunction = ParseTreeUtils.getEnclosingFunction(node);
|
|
53081
|
+
if (containingFunction && ParseTreeUtils.isUnannotatedFunction(containingFunction) && ParseTreeUtils.isNodeContainedWithin(node, containingFunction.suite)) {
|
|
53082
|
+
return void 0;
|
|
53083
|
+
}
|
|
53084
|
+
}
|
|
53003
53085
|
const diagnostic = addDiagnosticWithSuppressionCheck(diagLevel, message, node, range);
|
|
53004
53086
|
if (diagnostic) {
|
|
53005
53087
|
diagnostic.setRule(rule);
|
|
@@ -53683,15 +53765,6 @@ var require_typeEvaluator = __commonJS({
|
|
|
53683
53765
|
let type;
|
|
53684
53766
|
let isIncomplete = false;
|
|
53685
53767
|
const allowForwardReferences = (flags & 4) !== 0 || fileInfo.isStubFile;
|
|
53686
|
-
if (!evaluatorOptions.analyzeUnannotatedFunctions) {
|
|
53687
|
-
const containingFunction = ParseTreeUtils.getEnclosingFunction(node);
|
|
53688
|
-
if (containingFunction && ParseTreeUtils.isUnannotatedFunction(containingFunction)) {
|
|
53689
|
-
return {
|
|
53690
|
-
type: types_1.AnyType.create(),
|
|
53691
|
-
isIncomplete: false
|
|
53692
|
-
};
|
|
53693
|
-
}
|
|
53694
|
-
}
|
|
53695
53768
|
const typeParamSymbol = AnalyzerNodeInfo.getTypeParameterSymbol(node);
|
|
53696
53769
|
if (typeParamSymbol) {
|
|
53697
53770
|
symbol = typeParamSymbol;
|
|
@@ -53711,6 +53784,16 @@ var require_typeEvaluator = __commonJS({
|
|
|
53711
53784
|
useCodeFlowAnalysis = false;
|
|
53712
53785
|
}
|
|
53713
53786
|
symbol = symbolWithScope.symbol;
|
|
53787
|
+
setSymbolAccessed(fileInfo, symbol, node);
|
|
53788
|
+
if (!fileInfo.diagnosticRuleSet.analyzeUnannotatedFunctions) {
|
|
53789
|
+
const containingFunction = ParseTreeUtils.getEnclosingFunction(node);
|
|
53790
|
+
if (containingFunction && ParseTreeUtils.isUnannotatedFunction(containingFunction)) {
|
|
53791
|
+
return {
|
|
53792
|
+
type: types_1.AnyType.create(),
|
|
53793
|
+
isIncomplete: false
|
|
53794
|
+
};
|
|
53795
|
+
}
|
|
53796
|
+
}
|
|
53714
53797
|
const effectiveTypeInfo = getEffectiveTypeOfSymbolForUsage(symbol, useCodeFlowAnalysis ? node : void 0);
|
|
53715
53798
|
let effectiveType = (0, typeUtils_1.transformPossibleRecursiveTypeAlias)(effectiveTypeInfo.type);
|
|
53716
53799
|
if (effectiveTypeInfo.isIncomplete) {
|
|
@@ -53763,7 +53846,6 @@ var require_typeEvaluator = __commonJS({
|
|
|
53763
53846
|
}
|
|
53764
53847
|
}
|
|
53765
53848
|
type = reportMissingTypeArguments(node, type, flags);
|
|
53766
|
-
setSymbolAccessed(fileInfo, symbol, node);
|
|
53767
53849
|
if ((flags & 1024) !== 0) {
|
|
53768
53850
|
if (effectiveTypeInfo.includesVariableDecl && !type.typeAliasInfo) {
|
|
53769
53851
|
let isAllowedTypeForVariable = (0, types_1.isTypeVar)(type) || (0, typeUtils_1.isTypeAliasPlaceholder)(type);
|
|
@@ -55055,7 +55137,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
55055
55137
|
if (typeAliasResult) {
|
|
55056
55138
|
return typeAliasResult;
|
|
55057
55139
|
}
|
|
55058
|
-
if ((0, typeUtils_1.isTypeAliasPlaceholder)(baseTypeResult.type)) {
|
|
55140
|
+
if ((0, types_1.isTypeVar)(baseTypeResult.type) && (0, typeUtils_1.isTypeAliasPlaceholder)(baseTypeResult.type)) {
|
|
55059
55141
|
const typeArgTypes = getTypeArgs(node, flags).map((t) => (0, typeUtils_1.convertToInstance)(t.type));
|
|
55060
55142
|
const type2 = types_1.TypeBase.cloneForTypeAlias(baseTypeResult.type, baseTypeResult.type.details.recursiveTypeAliasName, "", baseTypeResult.type.details.recursiveTypeAliasScopeId, baseTypeResult.type.details.recursiveTypeParameters, typeArgTypes);
|
|
55061
55143
|
return { type: type2 };
|
|
@@ -56201,7 +56283,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
56201
56283
|
}
|
|
56202
56284
|
});
|
|
56203
56285
|
}
|
|
56204
|
-
if (!validatedTypes && argList.
|
|
56286
|
+
if (!validatedTypes && argList.some((arg) => arg.argumentCategory === 0)) {
|
|
56205
56287
|
const isCustomMetaclass = !!type.details.effectiveMetaclass && (0, types_1.isInstantiableClass)(type.details.effectiveMetaclass) && !types_1.ClassType.isBuiltIn(type.details.effectiveMetaclass);
|
|
56206
56288
|
if (!isCustomMetaclass && !usedMetaclassCallMethod) {
|
|
56207
56289
|
const fileInfo = AnalyzerNodeInfo.getFileInfo(errorNode);
|
|
@@ -57125,8 +57207,8 @@ var require_typeEvaluator = __commonJS({
|
|
|
57125
57207
|
const tupleTypeArgs = variadicArgs.map((argParam) => {
|
|
57126
57208
|
var _a2;
|
|
57127
57209
|
const argType = getTypeOfArgument(argParam.argument).type;
|
|
57128
|
-
const containsVariadicTypeVar = (0, types_1.isUnpackedVariadicTypeVar)(argType) || (0, types_1.isClassInstance)(argType) && (0, typeUtils_1.isTupleClass)(argType) && argType.tupleTypeArguments && argType.tupleTypeArguments.
|
|
57129
|
-
if (containsVariadicTypeVar && argParam.argument.argumentCategory !== 1) {
|
|
57210
|
+
const containsVariadicTypeVar = (0, types_1.isUnpackedVariadicTypeVar)(argType) || (0, types_1.isClassInstance)(argType) && (0, typeUtils_1.isTupleClass)(argType) && argType.tupleTypeArguments && argType.tupleTypeArguments.length === 1 && (0, types_1.isUnpackedVariadicTypeVar)(argType.tupleTypeArguments[0].type);
|
|
57211
|
+
if (containsVariadicTypeVar && argParam.argument.argumentCategory !== 1 && !argParam.mapsToVarArgList) {
|
|
57130
57212
|
addDiagnostic(AnalyzerNodeInfo.getFileInfo(errorNode).diagnosticRuleSet.reportGeneralTypeIssues, diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.Localizer.Diagnostic.typeVarTupleMustBeUnpacked(), (_a2 = argParam.argument.valueExpression) !== null && _a2 !== void 0 ? _a2 : errorNode);
|
|
57131
57213
|
reportedArgError = true;
|
|
57132
57214
|
}
|
|
@@ -58597,13 +58679,18 @@ var require_typeEvaluator = __commonJS({
|
|
|
58597
58679
|
let effectiveExpectedType = expectedType;
|
|
58598
58680
|
if (expectedType && (0, types_1.isUnion)(expectedType)) {
|
|
58599
58681
|
let matchingSubtype;
|
|
58682
|
+
let matchingSubtypeResult;
|
|
58600
58683
|
(0, typeUtils_1.doForEachSubtype)(expectedType, (subtype) => {
|
|
58601
|
-
if (!
|
|
58602
|
-
|
|
58603
|
-
|
|
58604
|
-
|
|
58605
|
-
|
|
58684
|
+
if (matchingSubtypeResult && !matchingSubtypeResult.typeErrors) {
|
|
58685
|
+
return;
|
|
58686
|
+
}
|
|
58687
|
+
const subtypeResult = useSpeculativeMode(node, () => {
|
|
58688
|
+
return getTypeOfDictionaryExpected(node, subtype);
|
|
58689
|
+
});
|
|
58690
|
+
if (subtypeResult && assignType(subtype, subtypeResult.type)) {
|
|
58691
|
+
if (!matchingSubtypeResult || matchingSubtypeResult.typeErrors && !subtypeResult.typeErrors) {
|
|
58606
58692
|
matchingSubtype = subtype;
|
|
58693
|
+
matchingSubtypeResult = subtypeResult;
|
|
58607
58694
|
}
|
|
58608
58695
|
}
|
|
58609
58696
|
});
|
|
@@ -58873,13 +58960,18 @@ var require_typeEvaluator = __commonJS({
|
|
|
58873
58960
|
let effectiveExpectedType = expectedType;
|
|
58874
58961
|
if (expectedType && (0, types_1.isUnion)(expectedType)) {
|
|
58875
58962
|
let matchingSubtype;
|
|
58963
|
+
let matchingSubtypeResult;
|
|
58876
58964
|
(0, typeUtils_1.doForEachSubtype)(expectedType, (subtype) => {
|
|
58877
|
-
if (!
|
|
58878
|
-
|
|
58879
|
-
|
|
58880
|
-
|
|
58881
|
-
|
|
58965
|
+
if (matchingSubtypeResult && !matchingSubtypeResult.typeErrors) {
|
|
58966
|
+
return;
|
|
58967
|
+
}
|
|
58968
|
+
const subtypeResult = useSpeculativeMode(node, () => {
|
|
58969
|
+
return getTypeOfListOrSetExpected(node, subtype);
|
|
58970
|
+
});
|
|
58971
|
+
if (subtypeResult && assignType(subtype, subtypeResult.type)) {
|
|
58972
|
+
if (!matchingSubtypeResult || matchingSubtypeResult.typeErrors && !subtypeResult.typeErrors) {
|
|
58882
58973
|
matchingSubtype = subtype;
|
|
58974
|
+
matchingSubtypeResult = subtypeResult;
|
|
58883
58975
|
}
|
|
58884
58976
|
}
|
|
58885
58977
|
});
|
|
@@ -58965,11 +59057,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
58965
59057
|
if (entry.nodeType === 32) {
|
|
58966
59058
|
entryTypeResult = getElementTypeFromListComprehension(entry);
|
|
58967
59059
|
} else {
|
|
58968
|
-
entryTypeResult = getTypeOfExpression(
|
|
58969
|
-
entry,
|
|
58970
|
-
void 0,
|
|
58971
|
-
hasExpectedType ? types_1.NeverType.createNever() : void 0
|
|
58972
|
-
);
|
|
59060
|
+
entryTypeResult = getTypeOfExpression(entry);
|
|
58973
59061
|
}
|
|
58974
59062
|
if (entryTypeResult.isIncomplete) {
|
|
58975
59063
|
isIncomplete = true;
|
|
@@ -60631,7 +60719,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
60631
60719
|
}
|
|
60632
60720
|
if (dataClassBehaviors) {
|
|
60633
60721
|
(0, dataClasses_1.applyDataClassDefaultBehaviors)(classType, dataClassBehaviors);
|
|
60634
|
-
(0, dataClasses_1.applyDataClassClassBehaviorOverrides)(evaluatorInterface, node.name, classType, initSubclassArgs);
|
|
60722
|
+
(0, dataClasses_1.applyDataClassClassBehaviorOverrides)(evaluatorInterface, node.name, classType, initSubclassArgs, dataClassBehaviors);
|
|
60635
60723
|
}
|
|
60636
60724
|
runClassTypeHooks(classType);
|
|
60637
60725
|
if (types_1.ClassType.isTypedDictClass(classType)) {
|
|
@@ -63379,6 +63467,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
63379
63467
|
return getEffectiveTypeOfSymbolForUsage(symbol).type;
|
|
63380
63468
|
}
|
|
63381
63469
|
function getEffectiveTypeOfSymbolForUsage(symbol, usageNode, useLastDecl = false) {
|
|
63470
|
+
var _a;
|
|
63382
63471
|
if (symbol.hasTypedDeclarations()) {
|
|
63383
63472
|
const declaredType = getDeclaredTypeOfSymbol(symbol, usageNode);
|
|
63384
63473
|
const typedDecls = symbol.getTypedDeclarations();
|
|
@@ -63399,12 +63488,16 @@ var require_typeEvaluator = __commonJS({
|
|
|
63399
63488
|
};
|
|
63400
63489
|
}
|
|
63401
63490
|
let cacheEntries = effectiveTypeCache.get(symbol.id);
|
|
63491
|
+
let evaluationAttempts = 0;
|
|
63402
63492
|
const usageNodeId = usageNode ? usageNode.id : void 0;
|
|
63403
63493
|
const effectiveTypeCacheKey = `${usageNodeId === void 0 ? "." : usageNodeId.toString()}${useLastDecl ? "*" : ""}`;
|
|
63404
63494
|
if (cacheEntries) {
|
|
63405
63495
|
const result = cacheEntries.get(effectiveTypeCacheKey);
|
|
63406
63496
|
if (result) {
|
|
63407
|
-
|
|
63497
|
+
if (!result.isIncomplete) {
|
|
63498
|
+
return result;
|
|
63499
|
+
}
|
|
63500
|
+
evaluationAttempts = ((_a = result.evaluationAttempts) !== null && _a !== void 0 ? _a : 0) + 1;
|
|
63408
63501
|
}
|
|
63409
63502
|
}
|
|
63410
63503
|
const typesToCombine = [];
|
|
@@ -63433,7 +63526,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
63433
63526
|
}
|
|
63434
63527
|
let sawExplicitTypeAlias = false;
|
|
63435
63528
|
decls.forEach((decl, index) => {
|
|
63436
|
-
var
|
|
63529
|
+
var _a2, _b;
|
|
63437
63530
|
let considerDecl = declIndexToConsider === void 0 || index === declIndexToConsider;
|
|
63438
63531
|
if (sawExplicitTypeAlias) {
|
|
63439
63532
|
considerDecl = false;
|
|
@@ -63455,7 +63548,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
63455
63548
|
if (isExplicitTypeAlias) {
|
|
63456
63549
|
sawExplicitTypeAlias = true;
|
|
63457
63550
|
}
|
|
63458
|
-
if (isTypeAlias && decl.type === 1 && ((_b = (
|
|
63551
|
+
if (isTypeAlias && decl.type === 1 && ((_b = (_a2 = decl.inferredTypeSource) === null || _a2 === void 0 ? void 0 : _a2.parent) === null || _b === void 0 ? void 0 : _b.nodeType) === 3) {
|
|
63459
63552
|
evaluateTypesForAssignmentStatement(decl.inferredTypeSource.parent);
|
|
63460
63553
|
if (decl.typeAliasAnnotation) {
|
|
63461
63554
|
getTypeOfAnnotation(decl.typeAliasAnnotation, {
|
|
@@ -63506,7 +63599,9 @@ var require_typeEvaluator = __commonJS({
|
|
|
63506
63599
|
}
|
|
63507
63600
|
}
|
|
63508
63601
|
isIncomplete = true;
|
|
63509
|
-
|
|
63602
|
+
if (evaluationAttempts < maxEffectiveTypeEvaluationAttempts) {
|
|
63603
|
+
sawPendingEvaluation = true;
|
|
63604
|
+
}
|
|
63510
63605
|
}
|
|
63511
63606
|
}
|
|
63512
63607
|
});
|
|
@@ -63516,7 +63611,8 @@ var require_typeEvaluator = __commonJS({
|
|
|
63516
63611
|
isIncomplete: sawPendingEvaluation,
|
|
63517
63612
|
includesVariableDecl,
|
|
63518
63613
|
includesIllegalTypeAliasDecl: !decls.every((decl) => (0, declarationUtils_1.isPossibleTypeAliasDeclaration)(decl)),
|
|
63519
|
-
isRecursiveDefinition: false
|
|
63614
|
+
isRecursiveDefinition: false,
|
|
63615
|
+
evaluationAttempts
|
|
63520
63616
|
};
|
|
63521
63617
|
if (!includesSpeculativeResult) {
|
|
63522
63618
|
if (!cacheEntries) {
|
|
@@ -63532,7 +63628,8 @@ var require_typeEvaluator = __commonJS({
|
|
|
63532
63628
|
isIncomplete,
|
|
63533
63629
|
includesVariableDecl,
|
|
63534
63630
|
includesIllegalTypeAliasDecl: !decls.every((decl) => (0, declarationUtils_1.isPossibleTypeAliasDeclaration)(decl)),
|
|
63535
|
-
isRecursiveDefinition: false
|
|
63631
|
+
isRecursiveDefinition: false,
|
|
63632
|
+
evaluationAttempts
|
|
63536
63633
|
};
|
|
63537
63634
|
}
|
|
63538
63635
|
function getDeclaredTypeOfSymbol(symbol, usageNode) {
|
|
@@ -63609,6 +63706,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
63609
63706
|
var _a;
|
|
63610
63707
|
let returnType;
|
|
63611
63708
|
let isIncomplete = false;
|
|
63709
|
+
let analyzeUnannotatedFunctions = true;
|
|
63612
63710
|
if (types_1.FunctionType.isStubDefinition(type)) {
|
|
63613
63711
|
return types_1.UnknownType.create();
|
|
63614
63712
|
}
|
|
@@ -63619,7 +63717,8 @@ var require_typeEvaluator = __commonJS({
|
|
|
63619
63717
|
returnType = types_1.NoneType.createInstance();
|
|
63620
63718
|
} else if (type.details.declaration) {
|
|
63621
63719
|
const functionNode = type.details.declaration.node;
|
|
63622
|
-
|
|
63720
|
+
analyzeUnannotatedFunctions = AnalyzerNodeInfo.getFileInfo(functionNode).diagnosticRuleSet.analyzeUnannotatedFunctions;
|
|
63721
|
+
if (analyzeUnannotatedFunctions && !checkCodeFlowTooComplex(functionNode.suite)) {
|
|
63623
63722
|
const codeFlowComplexity = AnalyzerNodeInfo.getCodeFlowComplexity(functionNode);
|
|
63624
63723
|
const parametersAreAnnotated = type.details.parameters.length <= 1 || type.details.parameters.some((param) => param.hasDeclaredType);
|
|
63625
63724
|
if (parametersAreAnnotated || codeFlowComplexity < maxReturnTypeInferenceCodeFlowComplexity) {
|
|
@@ -63644,7 +63743,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
63644
63743
|
type.inferredReturnType = returnType;
|
|
63645
63744
|
}
|
|
63646
63745
|
}
|
|
63647
|
-
if (!isIncomplete &&
|
|
63746
|
+
if (!isIncomplete && analyzeUnannotatedFunctions && (0, typeUtils_1.isPartlyUnknown)(returnType) && types_1.FunctionType.hasUnannotatedParams(type) && !types_1.FunctionType.isStubDefinition(type) && !types_1.FunctionType.isPyTypedDefinition(type) && args) {
|
|
63648
63747
|
const contextualReturnType = getFunctionInferredReturnTypeUsingArguments(type, args);
|
|
63649
63748
|
if (contextualReturnType) {
|
|
63650
63749
|
returnType = contextualReturnType;
|
|
@@ -64191,8 +64290,15 @@ var require_typeEvaluator = __commonJS({
|
|
|
64191
64290
|
flags |= 2048;
|
|
64192
64291
|
}
|
|
64193
64292
|
}
|
|
64194
|
-
|
|
64195
|
-
|
|
64293
|
+
const transformedDestType = (0, typeUtils_1.transformPossibleRecursiveTypeAlias)(destType);
|
|
64294
|
+
const transformedSrcType = (0, typeUtils_1.transformPossibleRecursiveTypeAlias)(srcType);
|
|
64295
|
+
if (transformedDestType !== destType && transformedSrcType !== srcType && (0, types_1.isUnion)(transformedDestType) && (0, types_1.isUnion)(transformedSrcType)) {
|
|
64296
|
+
if (recursionCount > maxRecursiveTypeAliasRecursionCount) {
|
|
64297
|
+
return true;
|
|
64298
|
+
}
|
|
64299
|
+
}
|
|
64300
|
+
destType = transformedDestType;
|
|
64301
|
+
srcType = transformedSrcType;
|
|
64196
64302
|
if ((0, types_1.isUnbound)(destType) || (0, types_1.isUnbound)(srcType)) {
|
|
64197
64303
|
return true;
|
|
64198
64304
|
}
|
|
@@ -64371,6 +64477,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
64371
64477
|
if ((0, types_1.isClassInstance)(expandedSrcType) && types_1.ClassType.isBuiltIn(expandedSrcType, "type")) {
|
|
64372
64478
|
const srcTypeArgs = expandedSrcType.typeArguments;
|
|
64373
64479
|
let typeTypeArg;
|
|
64480
|
+
let instantiableType;
|
|
64374
64481
|
if (srcTypeArgs && srcTypeArgs.length >= 1) {
|
|
64375
64482
|
typeTypeArg = srcTypeArgs[0];
|
|
64376
64483
|
if ((0, types_1.isAnyOrUnknown)(typeTypeArg)) {
|
|
@@ -64379,18 +64486,22 @@ var require_typeEvaluator = __commonJS({
|
|
|
64379
64486
|
}
|
|
64380
64487
|
return types_1.TypeBase.isInstantiable(destType);
|
|
64381
64488
|
}
|
|
64382
|
-
|
|
64489
|
+
instantiableType = (0, typeUtils_1.convertToInstantiable)(typeTypeArg);
|
|
64490
|
+
} else if (types_1.TypeBase.isInstantiable(destType)) {
|
|
64383
64491
|
typeTypeArg = objectType !== null && objectType !== void 0 ? objectType : types_1.AnyType.create();
|
|
64492
|
+
instantiableType = expandedSrcType;
|
|
64384
64493
|
}
|
|
64385
|
-
if (
|
|
64386
|
-
if (
|
|
64387
|
-
|
|
64494
|
+
if (instantiableType && typeTypeArg) {
|
|
64495
|
+
if ((0, types_1.isClassInstance)(typeTypeArg) || (0, types_1.isTypeVar)(typeTypeArg)) {
|
|
64496
|
+
if (assignType(destType, instantiableType, diag === null || diag === void 0 ? void 0 : diag.createAddendum(), destTypeVarContext, srcTypeVarContext, flags, recursionCount)) {
|
|
64497
|
+
return true;
|
|
64498
|
+
}
|
|
64499
|
+
diag === null || diag === void 0 ? void 0 : diag.addMessage(localize_1.Localizer.DiagnosticAddendum.typeAssignmentMismatch().format({
|
|
64500
|
+
sourceType: printType(srcType),
|
|
64501
|
+
destType: printType(destType)
|
|
64502
|
+
}));
|
|
64503
|
+
return false;
|
|
64388
64504
|
}
|
|
64389
|
-
diag === null || diag === void 0 ? void 0 : diag.addMessage(localize_1.Localizer.DiagnosticAddendum.typeAssignmentMismatch().format({
|
|
64390
|
-
sourceType: printType(srcType),
|
|
64391
|
-
destType: printType(destType)
|
|
64392
|
-
}));
|
|
64393
|
-
return false;
|
|
64394
64505
|
}
|
|
64395
64506
|
}
|
|
64396
64507
|
if ((0, types_1.isInstantiableClass)(destType)) {
|
|
@@ -64828,7 +64939,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
64828
64939
|
let bestDestTypeVarContext;
|
|
64829
64940
|
let bestSrcTypeVarContext;
|
|
64830
64941
|
let bestTypeVarContextScore;
|
|
64831
|
-
if ((0, types_1.isClassInstance)(srcType) && (0, typeUtils_1.isLiteralType)(srcType) && types_1.UnionType.containsType(destType, srcType, recursionCount)) {
|
|
64942
|
+
if ((0, types_1.isClassInstance)(srcType) && (0, typeUtils_1.isLiteralType)(srcType) && types_1.UnionType.containsType(destType, srcType, void 0, recursionCount)) {
|
|
64832
64943
|
return true;
|
|
64833
64944
|
}
|
|
64834
64945
|
(0, typeUtils_1.doForEachSubtype)(destType, (subtype) => {
|
|
@@ -65453,6 +65564,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
65453
65564
|
name: p.name,
|
|
65454
65565
|
isNameSynthesized: p.isNameSynthesized,
|
|
65455
65566
|
hasDefault: !!p.hasDefault,
|
|
65567
|
+
defaultValueExpression: p.defaultValueExpression,
|
|
65456
65568
|
type: types_1.FunctionType.getEffectiveParameterType(effectiveSrcType, index)
|
|
65457
65569
|
});
|
|
65458
65570
|
}
|
|
@@ -65832,7 +65944,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
65832
65944
|
if ((0, types_1.isAnyOrUnknown)(srcType)) {
|
|
65833
65945
|
return srcType;
|
|
65834
65946
|
}
|
|
65835
|
-
let effectiveSrcType = srcType;
|
|
65947
|
+
let effectiveSrcType = (0, typeUtils_1.transformPossibleRecursiveTypeAlias)(srcType);
|
|
65836
65948
|
if ((0, types_1.isTypeVar)(srcType)) {
|
|
65837
65949
|
if ((0, types_1.isTypeSame)(srcType, destType)) {
|
|
65838
65950
|
return srcType;
|
|
@@ -65842,7 +65954,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
65842
65954
|
if ((0, types_1.isClass)(effectiveSrcType) && types_1.ClassType.isPartiallyEvaluated(effectiveSrcType)) {
|
|
65843
65955
|
return srcType;
|
|
65844
65956
|
}
|
|
65845
|
-
if (destType.details.boundType) {
|
|
65957
|
+
if (destType.details.boundType && !(0, typeUtils_1.isTypeAliasPlaceholder)(effectiveSrcType)) {
|
|
65846
65958
|
if (!assignType(
|
|
65847
65959
|
destType.details.boundType,
|
|
65848
65960
|
effectiveSrcType,
|
|
@@ -65884,6 +65996,9 @@ var require_typeEvaluator = __commonJS({
|
|
|
65884
65996
|
if (constraints.length === 0) {
|
|
65885
65997
|
return srcType;
|
|
65886
65998
|
}
|
|
65999
|
+
if ((0, typeUtils_1.isTypeAliasPlaceholder)(srcType)) {
|
|
66000
|
+
return srcType;
|
|
66001
|
+
}
|
|
65887
66002
|
if ((0, types_1.isTypeVar)(srcType) && srcType.details.constraints.length > 0) {
|
|
65888
66003
|
if (srcType.details.constraints.every((sourceConstraint) => {
|
|
65889
66004
|
return constraints.some((destConstraint) => assignType(destConstraint, sourceConstraint));
|
|
@@ -66421,6 +66536,11 @@ var require_checker = __commonJS({
|
|
|
66421
66536
|
if (node.typeParameters) {
|
|
66422
66537
|
this.walk(node.typeParameters);
|
|
66423
66538
|
}
|
|
66539
|
+
if (!this._fileInfo.diagnosticRuleSet.analyzeUnannotatedFunctions && !this._fileInfo.isStubFile) {
|
|
66540
|
+
if (ParseTreeUtils.isUnannotatedFunction(node)) {
|
|
66541
|
+
this._evaluator.addInformation(localize_1.Localizer.Diagnostic.unannotatedFunctionSkipped().format({ name: node.name.value }), node.name);
|
|
66542
|
+
}
|
|
66543
|
+
}
|
|
66424
66544
|
const functionTypeResult = this._evaluator.getTypeOfFunction(node);
|
|
66425
66545
|
const containingClassNode = ParseTreeUtils.getEnclosingClass(node, true);
|
|
66426
66546
|
if (functionTypeResult) {
|
|
@@ -66473,12 +66593,6 @@ var require_checker = __commonJS({
|
|
|
66473
66593
|
}
|
|
66474
66594
|
}
|
|
66475
66595
|
}
|
|
66476
|
-
if (param.defaultValue && this._fileInfo.isStubFile) {
|
|
66477
|
-
const defaultValueType = this._evaluator.getType(param.defaultValue);
|
|
66478
|
-
if (!defaultValueType || !(0, typeUtils_1.isEllipsisType)(defaultValueType)) {
|
|
66479
|
-
this._evaluator.addDiagnostic(this._fileInfo.diagnosticRuleSet.reportInvalidStubStatement, diagnosticRules_1.DiagnosticRule.reportInvalidStubStatement, localize_1.Localizer.Diagnostic.defaultValueNotEllipsis(), param.defaultValue);
|
|
66480
|
-
}
|
|
66481
|
-
}
|
|
66482
66596
|
});
|
|
66483
66597
|
const paramSpecParams = functionTypeResult.functionType.details.parameters.filter((param) => {
|
|
66484
66598
|
if (param.typeAnnotation && (0, types_1.isTypeVar)(param.type) && (0, types_1.isParamSpec)(param.type)) {
|
|
@@ -68384,9 +68498,14 @@ var require_checker = __commonJS({
|
|
|
68384
68498
|
}
|
|
68385
68499
|
}
|
|
68386
68500
|
_conditionallyReportShadowedImport(node) {
|
|
68501
|
+
var _a, _b;
|
|
68387
68502
|
if (this._fileInfo.diagnosticRuleSet.reportShadowedImports === "none") {
|
|
68388
68503
|
return;
|
|
68389
68504
|
}
|
|
68505
|
+
const nodeModule = node.nodeType === 23 ? ((_a = node.parent) === null || _a === void 0 ? void 0 : _a.nodeType) === 22 ? (_b = node.parent) === null || _b === void 0 ? void 0 : _b.module : void 0 : node.module;
|
|
68506
|
+
if (nodeModule === null || nodeModule === void 0 ? void 0 : nodeModule.leadingDots) {
|
|
68507
|
+
return;
|
|
68508
|
+
}
|
|
68390
68509
|
const namePartNodes = node.nodeType === 21 ? node.module.nameParts : node.nodeType === 23 ? [node.name] : node.module.nameParts;
|
|
68391
68510
|
const nameParts = namePartNodes.map((n) => n.value);
|
|
68392
68511
|
const module3 = {
|
|
@@ -70156,7 +70275,7 @@ var require_sourceFile = __commonJS({
|
|
|
70156
70275
|
const rangeStart = this._typeIgnoreAll.range.start;
|
|
70157
70276
|
const rangeEnd = rangeStart + this._typeIgnoreAll.range.length;
|
|
70158
70277
|
const range = (0, positionUtils_1.convertOffsetsToRange)(rangeStart, rangeEnd, this._parseResults.tokenizerOutput.lines);
|
|
70159
|
-
if (!isUnreachableCodeRange(range)) {
|
|
70278
|
+
if (!isUnreachableCodeRange(range) && this._diagnosticRuleSet.enableTypeIgnoreComments) {
|
|
70160
70279
|
unnecessaryTypeIgnoreDiags.push(new diagnostic_1.Diagnostic(diagCategory, localize_1.Localizer.Diagnostic.unnecessaryTypeIgnore(), range));
|
|
70161
70280
|
}
|
|
70162
70281
|
}
|
|
@@ -70166,7 +70285,7 @@ var require_sourceFile = __commonJS({
|
|
|
70166
70285
|
const rangeStart = ignoreComment.range.start;
|
|
70167
70286
|
const rangeEnd = rangeStart + ignoreComment.range.length;
|
|
70168
70287
|
const range = (0, positionUtils_1.convertOffsetsToRange)(rangeStart, rangeEnd, this._parseResults.tokenizerOutput.lines);
|
|
70169
|
-
if (!isUnreachableCodeRange(range)) {
|
|
70288
|
+
if (!isUnreachableCodeRange(range) && this._diagnosticRuleSet.enableTypeIgnoreComments) {
|
|
70170
70289
|
unnecessaryTypeIgnoreDiags.push(new diagnostic_1.Diagnostic(diagCategory, localize_1.Localizer.Diagnostic.unnecessaryTypeIgnore(), range));
|
|
70171
70290
|
}
|
|
70172
70291
|
}
|
|
@@ -71519,9 +71638,7 @@ var require_tokenizer = __commonJS({
|
|
|
71519
71638
|
}
|
|
71520
71639
|
_addLineRange() {
|
|
71521
71640
|
const lineLength = this._cs.position - this._prevLineStart;
|
|
71522
|
-
|
|
71523
|
-
this._lineRanges.push({ start: this._prevLineStart, length: lineLength });
|
|
71524
|
-
}
|
|
71641
|
+
this._lineRanges.push({ start: this._prevLineStart, length: lineLength });
|
|
71525
71642
|
this._prevLineStart = this._cs.position;
|
|
71526
71643
|
}
|
|
71527
71644
|
_handleNewLine(length, newLineType) {
|
|
@@ -90532,7 +90649,7 @@ var require_tree_kill = __commonJS({
|
|
|
90532
90649
|
"node_modules/tree-kill/index.js"(exports, module2) {
|
|
90533
90650
|
"use strict";
|
|
90534
90651
|
var childProcess = require("child_process");
|
|
90535
|
-
var
|
|
90652
|
+
var spawn4 = childProcess.spawn;
|
|
90536
90653
|
var exec = childProcess.exec;
|
|
90537
90654
|
module2.exports = function(pid, signal, callback) {
|
|
90538
90655
|
if (typeof signal === "function" && callback === void 0) {
|
|
@@ -90557,14 +90674,14 @@ var require_tree_kill = __commonJS({
|
|
|
90557
90674
|
break;
|
|
90558
90675
|
case "darwin":
|
|
90559
90676
|
buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
|
|
90560
|
-
return
|
|
90677
|
+
return spawn4("pgrep", ["-P", parentPid]);
|
|
90561
90678
|
}, function() {
|
|
90562
90679
|
killAll(tree, signal, callback);
|
|
90563
90680
|
});
|
|
90564
90681
|
break;
|
|
90565
90682
|
default:
|
|
90566
90683
|
buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
|
|
90567
|
-
return
|
|
90684
|
+
return spawn4("ps", ["-o", "pid", "--no-headers", "--ppid", parentPid]);
|
|
90568
90685
|
}, function() {
|
|
90569
90686
|
killAll(tree, signal, callback);
|
|
90570
90687
|
});
|
|
@@ -91771,6 +91888,7 @@ var _PythonSettings = class {
|
|
|
91771
91888
|
constructor() {
|
|
91772
91889
|
this.disposables = [];
|
|
91773
91890
|
this._pythonPath = "";
|
|
91891
|
+
this._stdLibs = [];
|
|
91774
91892
|
this.workspaceRoot = import_coc.workspace.root ? import_coc.workspace.root : __dirname;
|
|
91775
91893
|
this.initialize();
|
|
91776
91894
|
}
|
|
@@ -91879,6 +91997,9 @@ var _PythonSettings = class {
|
|
|
91879
91997
|
}
|
|
91880
91998
|
this.sortImports.path = this.getAbsolutePath(systemVariables.resolveAny(this.sortImports.path));
|
|
91881
91999
|
}
|
|
92000
|
+
get stdLibs() {
|
|
92001
|
+
return this._stdLibs;
|
|
92002
|
+
}
|
|
91882
92003
|
get pythonPath() {
|
|
91883
92004
|
return this._pythonPath;
|
|
91884
92005
|
}
|
|
@@ -91888,6 +92009,7 @@ var _PythonSettings = class {
|
|
|
91888
92009
|
}
|
|
91889
92010
|
try {
|
|
91890
92011
|
this._pythonPath = getPythonExecutable(value);
|
|
92012
|
+
this._stdLibs = getStdLibs(this._pythonPath);
|
|
91891
92013
|
} catch (ex) {
|
|
91892
92014
|
this._pythonPath = value;
|
|
91893
92015
|
}
|
|
@@ -91932,6 +92054,17 @@ function getPythonExecutable(pythonPath) {
|
|
|
91932
92054
|
}
|
|
91933
92055
|
return pythonPath;
|
|
91934
92056
|
}
|
|
92057
|
+
function getStdLibs(pythonPath) {
|
|
92058
|
+
try {
|
|
92059
|
+
let args = ["-c", "import site;print(site.getsitepackages()[0])"];
|
|
92060
|
+
const sitePkgs = child_process.spawnSync(pythonPath, args, { encoding: "utf8" }).stdout.trim();
|
|
92061
|
+
args = ["-c", "import site;print(site.getusersitepackages())"];
|
|
92062
|
+
const userPkgs = child_process.spawnSync(pythonPath, args, { encoding: "utf8" }).stdout.trim();
|
|
92063
|
+
return [sitePkgs, userPkgs];
|
|
92064
|
+
} catch (e) {
|
|
92065
|
+
return [];
|
|
92066
|
+
}
|
|
92067
|
+
}
|
|
91935
92068
|
function isValidPythonPath(pythonPath) {
|
|
91936
92069
|
try {
|
|
91937
92070
|
return child_process.spawnSync(pythonPath, ["-c", "print(1234)"], { encoding: "utf8" }).stdout.startsWith("1234");
|
|
@@ -92098,28 +92231,32 @@ var PythonCodeActionProvider = class {
|
|
|
92098
92231
|
}
|
|
92099
92232
|
};
|
|
92100
92233
|
}
|
|
92101
|
-
ignoreAction(
|
|
92102
|
-
|
|
92234
|
+
ignoreAction(document, range) {
|
|
92235
|
+
const ignoreTxt = "# type: ignore";
|
|
92236
|
+
const doc = import_coc3.workspace.getDocument(document.uri);
|
|
92237
|
+
if (this.wholeRange(document, range) || this.cursorRange(range)) {
|
|
92103
92238
|
let pos = import_coc3.Position.create(0, 0);
|
|
92104
|
-
if (doc.getline(0).startsWith("#!"))
|
|
92239
|
+
if (doc.getline(0).startsWith("#!"))
|
|
92105
92240
|
pos = import_coc3.Position.create(1, 0);
|
|
92106
|
-
|
|
92107
|
-
|
|
92108
|
-
|
|
92109
|
-
|
|
92110
|
-
|
|
92111
|
-
|
|
92112
|
-
|
|
92241
|
+
if (!doc.getline(pos.line).includes(ignoreTxt)) {
|
|
92242
|
+
return {
|
|
92243
|
+
title: "Ignore Pyright typing check for whole file",
|
|
92244
|
+
kind: import_coc3.CodeActionKind.Empty,
|
|
92245
|
+
edit: {
|
|
92246
|
+
changes: {
|
|
92247
|
+
[doc.uri]: [import_coc3.TextEdit.insert(pos, ignoreTxt + "\n")]
|
|
92248
|
+
}
|
|
92113
92249
|
}
|
|
92114
|
-
}
|
|
92115
|
-
}
|
|
92250
|
+
};
|
|
92251
|
+
}
|
|
92116
92252
|
}
|
|
92117
92253
|
if (this.lineRange(range)) {
|
|
92118
92254
|
const line = doc.getline(range.start.line);
|
|
92119
|
-
if (line && line.length && !line.startsWith("#")) {
|
|
92120
|
-
const edit = import_coc3.TextEdit.replace(range, `${line}
|
|
92255
|
+
if (line && line.length && !line.startsWith("#") && !line.includes(ignoreTxt)) {
|
|
92256
|
+
const edit = import_coc3.TextEdit.replace(range, `${line} ${ignoreTxt}${range.start.line + 1 === range.end.line ? "\n" : ""}`);
|
|
92121
92257
|
return {
|
|
92122
92258
|
title: "Ignore Pyright typing check for current line",
|
|
92259
|
+
kind: import_coc3.CodeActionKind.Empty,
|
|
92123
92260
|
edit: {
|
|
92124
92261
|
changes: {
|
|
92125
92262
|
[doc.uri]: [edit]
|
|
@@ -92152,44 +92289,56 @@ var PythonCodeActionProvider = class {
|
|
|
92152
92289
|
}
|
|
92153
92290
|
];
|
|
92154
92291
|
}
|
|
92155
|
-
|
|
92156
|
-
|
|
92157
|
-
|
|
92158
|
-
|
|
92159
|
-
|
|
92160
|
-
|
|
92161
|
-
|
|
92162
|
-
|
|
92163
|
-
|
|
92164
|
-
|
|
92165
|
-
|
|
92166
|
-
|
|
92167
|
-
|
|
92168
|
-
|
|
92169
|
-
|
|
92170
|
-
|
|
92171
|
-
|
|
92172
|
-
|
|
92173
|
-
|
|
92174
|
-
|
|
92175
|
-
|
|
92176
|
-
|
|
92292
|
+
fixAction(document, diag) {
|
|
92293
|
+
if (diag.code === "reportUndefinedVariable") {
|
|
92294
|
+
const msg = diag.message;
|
|
92295
|
+
const match = msg.match(/"(.*)" is not defined/);
|
|
92296
|
+
if (match) {
|
|
92297
|
+
return [
|
|
92298
|
+
{
|
|
92299
|
+
title: `Add "import ${match[1]}"`,
|
|
92300
|
+
kind: import_coc3.CodeActionKind.Source,
|
|
92301
|
+
command: {
|
|
92302
|
+
title: "",
|
|
92303
|
+
command: "pyright.addImport",
|
|
92304
|
+
arguments: [document, match[1], false]
|
|
92305
|
+
}
|
|
92306
|
+
},
|
|
92307
|
+
{
|
|
92308
|
+
title: `Add "from _ import ${match[1]}"`,
|
|
92309
|
+
kind: import_coc3.CodeActionKind.Source,
|
|
92310
|
+
command: {
|
|
92311
|
+
title: "",
|
|
92312
|
+
command: "pyright.addImport",
|
|
92313
|
+
arguments: [document, match[1], true]
|
|
92314
|
+
}
|
|
92315
|
+
}
|
|
92316
|
+
];
|
|
92177
92317
|
}
|
|
92178
|
-
|
|
92318
|
+
}
|
|
92319
|
+
if (diag.fix) {
|
|
92320
|
+
const title = `Fix: ${diag.message.split(":")[0]}`;
|
|
92321
|
+
const action = {
|
|
92322
|
+
title,
|
|
92323
|
+
kind: import_coc3.CodeActionKind.QuickFix,
|
|
92324
|
+
edit: diag.fix
|
|
92325
|
+
};
|
|
92326
|
+
return [action];
|
|
92327
|
+
}
|
|
92328
|
+
return [];
|
|
92179
92329
|
}
|
|
92180
92330
|
provideCodeActions(document, range, context) {
|
|
92181
|
-
if (this.cursorRange(range) && context.diagnostics.length) {
|
|
92182
|
-
const diag = context.diagnostics.find((d) => d.code === "reportUndefinedVariable");
|
|
92183
|
-
if (diag)
|
|
92184
|
-
return this.addImportActions(document, diag.message);
|
|
92185
|
-
}
|
|
92186
|
-
const doc = import_coc3.workspace.getDocument(document.uri);
|
|
92187
92331
|
const actions = [];
|
|
92332
|
+
if (context.diagnostics.length) {
|
|
92333
|
+
for (const diag of context.diagnostics) {
|
|
92334
|
+
actions.push(...this.fixAction(document, diag));
|
|
92335
|
+
}
|
|
92336
|
+
}
|
|
92188
92337
|
actions.push(this.sortImportsAction());
|
|
92189
|
-
const ignore = this.ignoreAction(
|
|
92338
|
+
const ignore = this.ignoreAction(document, range);
|
|
92190
92339
|
if (ignore)
|
|
92191
92340
|
actions.push(ignore);
|
|
92192
|
-
if (!this.wholeRange(
|
|
92341
|
+
if (!this.wholeRange(document, range) && !this.cursorRange(range)) {
|
|
92193
92342
|
actions.push(...this.extractActions(document, range));
|
|
92194
92343
|
}
|
|
92195
92344
|
return actions;
|
|
@@ -92680,6 +92829,9 @@ var BaseFormatter = class {
|
|
|
92680
92829
|
return { execPath, moduleName, args };
|
|
92681
92830
|
}
|
|
92682
92831
|
async provideDocumentFormattingEdits(document, _options, token, args, cwd) {
|
|
92832
|
+
if (this.pythonSettings.stdLibs.some((p) => import_coc5.Uri.parse(document.uri).fsPath.startsWith(p))) {
|
|
92833
|
+
return [];
|
|
92834
|
+
}
|
|
92683
92835
|
if (typeof cwd !== "string" || cwd.length === 0) {
|
|
92684
92836
|
cwd = import_coc5.Uri.file(import_coc5.workspace.root).fsPath;
|
|
92685
92837
|
}
|
|
@@ -92970,6 +93122,9 @@ var BlackdFormatter = class extends BaseFormatter {
|
|
|
92970
93122
|
import_coc7.window.showErrorMessage(msg);
|
|
92971
93123
|
return Promise.resolve([]);
|
|
92972
93124
|
}
|
|
93125
|
+
if (this.pythonSettings.stdLibs.some((p) => import_coc7.Uri.parse(document.uri).fsPath.startsWith(p))) {
|
|
93126
|
+
return Promise.resolve([]);
|
|
93127
|
+
}
|
|
92973
93128
|
return this.handle(document);
|
|
92974
93129
|
}
|
|
92975
93130
|
};
|
|
@@ -93094,7 +93249,7 @@ var ImportCompletionProvider = class {
|
|
|
93094
93249
|
return [];
|
|
93095
93250
|
const items = [];
|
|
93096
93251
|
for (const o of result.items) {
|
|
93097
|
-
items.push({ label: o.word, sortText: o.sortText, kind: import_coc10.CompletionItemKind.Module, filterText: o.filterText });
|
|
93252
|
+
items.push({ label: o.label || o.word, sortText: o.sortText, kind: import_coc10.CompletionItemKind.Module, filterText: o.filterText });
|
|
93098
93253
|
}
|
|
93099
93254
|
return items;
|
|
93100
93255
|
}
|
|
@@ -93239,22 +93394,19 @@ var TypeInlayHintsProvider = class {
|
|
|
93239
93394
|
}
|
|
93240
93395
|
getVariableHintAtHover(hover) {
|
|
93241
93396
|
const contents = hover.contents;
|
|
93242
|
-
if (contents) {
|
|
93243
|
-
|
|
93244
|
-
|
|
93245
|
-
const
|
|
93246
|
-
return
|
|
93397
|
+
if (contents && contents.value.includes("(variable)")) {
|
|
93398
|
+
const firstIdx = contents.value.indexOf(": ");
|
|
93399
|
+
if (firstIdx > -1) {
|
|
93400
|
+
const text = contents.value.substring(firstIdx + 2).split("\n")[0].trim();
|
|
93401
|
+
return ": " + text;
|
|
93247
93402
|
}
|
|
93248
93403
|
}
|
|
93249
93404
|
}
|
|
93250
93405
|
getFunctionReturnHintAtHover(hover) {
|
|
93251
93406
|
const contents = hover.contents;
|
|
93252
|
-
if (contents) {
|
|
93253
|
-
|
|
93254
|
-
|
|
93255
|
-
const hintText = "-> " + text;
|
|
93256
|
-
return hintText;
|
|
93257
|
-
}
|
|
93407
|
+
if (contents && (contents.value.includes("(function)") || contents.value.includes("(method)"))) {
|
|
93408
|
+
const text = contents.value.split("->")[1].split("\n")[0].trim();
|
|
93409
|
+
return "-> " + text;
|
|
93258
93410
|
}
|
|
93259
93411
|
}
|
|
93260
93412
|
isDisableVariableTypes(inlayHintType) {
|
|
@@ -93564,6 +93716,9 @@ var LinterInfo = class {
|
|
|
93564
93716
|
get configFileNames() {
|
|
93565
93717
|
return this._configFileNames;
|
|
93566
93718
|
}
|
|
93719
|
+
get stdinSupport() {
|
|
93720
|
+
return this._id === "ruff" ? true : false;
|
|
93721
|
+
}
|
|
93567
93722
|
isEnabled(_resource) {
|
|
93568
93723
|
const settings = this.configService;
|
|
93569
93724
|
return settings.linting[this.enabledSettingName];
|
|
@@ -93889,21 +94044,48 @@ var Ruff = class extends BaseLinter {
|
|
|
93889
94044
|
constructor(info, outputChannel) {
|
|
93890
94045
|
super(info, outputChannel, COLUMN_OFF_SET5);
|
|
93891
94046
|
}
|
|
94047
|
+
fixToWorkspaceEdit(filename, fix) {
|
|
94048
|
+
if (!fix)
|
|
94049
|
+
return null;
|
|
94050
|
+
const u = import_coc24.Uri.parse(filename).toString();
|
|
94051
|
+
const range = import_coc24.Range.create(fix.location.row - 1, fix.location.column, fix.end_location.row - 1, fix.end_location.column);
|
|
94052
|
+
return {
|
|
94053
|
+
changes: {
|
|
94054
|
+
[u]: [import_coc24.TextEdit.replace(range, fix.content)]
|
|
94055
|
+
}
|
|
94056
|
+
};
|
|
94057
|
+
}
|
|
94058
|
+
runRuff(document) {
|
|
94059
|
+
const fsPath = import_coc24.Uri.parse(document.uri).fsPath;
|
|
94060
|
+
const args = [...this.info.linterArgs(), "--format", "json", "--exit-zero", "--stdin-filename", fsPath, "-"];
|
|
94061
|
+
const command = this.info.pathName();
|
|
94062
|
+
this.outputChannel.appendLine(`${"#".repeat(10)} Run linter ${this.info.id}:`);
|
|
94063
|
+
this.outputChannel.appendLine(`${command} ${args.join(" ")}`);
|
|
94064
|
+
this.outputChannel.appendLine("");
|
|
94065
|
+
const child = (0, import_child_process3.spawn)(command, args, { cwd: import_coc24.workspace.root });
|
|
94066
|
+
return new Promise((resolve) => {
|
|
94067
|
+
child.stdin.setDefaultEncoding("utf8");
|
|
94068
|
+
child.stdin.write(document.getText());
|
|
94069
|
+
child.stdin.end();
|
|
94070
|
+
let result = "";
|
|
94071
|
+
child.stdout.on("data", (data) => {
|
|
94072
|
+
result += data.toString("utf-8").trim();
|
|
94073
|
+
});
|
|
94074
|
+
child.on("close", () => {
|
|
94075
|
+
resolve(result);
|
|
94076
|
+
});
|
|
94077
|
+
});
|
|
94078
|
+
}
|
|
93892
94079
|
async runLinter(document) {
|
|
93893
94080
|
if (!this.info.isEnabled(import_coc24.Uri.parse(document.uri)))
|
|
93894
94081
|
return [];
|
|
93895
|
-
const args = [...this.info.linterArgs(), "--format=json", import_coc24.Uri.parse(document.uri).fsPath];
|
|
93896
|
-
const bin = this.info.pathName();
|
|
93897
94082
|
try {
|
|
93898
|
-
|
|
93899
|
-
this.outputChannel.appendLine(`${bin} ${args.join(" ")}`);
|
|
93900
|
-
this.outputChannel.appendLine("");
|
|
93901
|
-
const result = (0, import_child_process3.spawnSync)(bin, args, { encoding: "utf8", cwd: import_coc24.workspace.root });
|
|
94083
|
+
const result = await this.runRuff(document);
|
|
93902
94084
|
this.outputChannel.append(`${"#".repeat(10)} Linting Output - ${this.info.id}${"#".repeat(10)}
|
|
93903
94085
|
`);
|
|
93904
|
-
this.outputChannel.append(result
|
|
94086
|
+
this.outputChannel.append(result);
|
|
93905
94087
|
this.outputChannel.appendLine("");
|
|
93906
|
-
const messages = JSON.parse(result
|
|
94088
|
+
const messages = JSON.parse(result).map((msg) => {
|
|
93907
94089
|
return {
|
|
93908
94090
|
line: msg.location.row,
|
|
93909
94091
|
column: msg.location.column - COLUMN_OFF_SET5,
|
|
@@ -93913,8 +94095,10 @@ var Ruff = class extends BaseLinter {
|
|
|
93913
94095
|
message: msg.message,
|
|
93914
94096
|
type: "",
|
|
93915
94097
|
severity: 2 /* Warning */,
|
|
94098
|
+
tags: ["F401", "F841"].includes(msg.code) ? [import_coc24.DiagnosticTag.Unnecessary] : [],
|
|
93916
94099
|
provider: this.info.id,
|
|
93917
|
-
file: msg.filename
|
|
94100
|
+
file: msg.filename,
|
|
94101
|
+
fix: this.fixToWorkspaceEdit(msg.filename, msg.fix)
|
|
93918
94102
|
};
|
|
93919
94103
|
});
|
|
93920
94104
|
return messages;
|
|
@@ -93980,7 +94164,7 @@ var LintingEngine = class {
|
|
|
93980
94164
|
await Promise.all(promises);
|
|
93981
94165
|
return this.diagnosticCollection;
|
|
93982
94166
|
}
|
|
93983
|
-
async lintDocument(document) {
|
|
94167
|
+
async lintDocument(document, onChange = false) {
|
|
93984
94168
|
this.diagnosticCollection.set(document.uri, []);
|
|
93985
94169
|
if (!this.shouldLintDocument(document)) {
|
|
93986
94170
|
return;
|
|
@@ -93997,7 +94181,7 @@ var LintingEngine = class {
|
|
|
93997
94181
|
}
|
|
93998
94182
|
});
|
|
93999
94183
|
this.pendingLintings.set(fsPath, cancelToken);
|
|
94000
|
-
const activeLinters =
|
|
94184
|
+
const activeLinters = this.getActiveLinters().filter((l) => onChange ? l.stdinSupport : true);
|
|
94001
94185
|
const promises = activeLinters.map(async (info) => {
|
|
94002
94186
|
this.outputChannel.appendLine(`Using python from ${this.configService.pythonPath}
|
|
94003
94187
|
`);
|
|
@@ -94027,10 +94211,9 @@ var LintingEngine = class {
|
|
|
94027
94211
|
this.diagnosticCollection.set(document.uri, diagnostics);
|
|
94028
94212
|
}
|
|
94029
94213
|
createDiagnostics(message, document) {
|
|
94030
|
-
var _a, _b;
|
|
94031
94214
|
let start = import_coc25.Position.create(message.line > 0 ? message.line - 1 : 0, message.column);
|
|
94032
|
-
const endLine =
|
|
94033
|
-
const endColumn =
|
|
94215
|
+
const endLine = message.endLine ?? message.line;
|
|
94216
|
+
const endColumn = message.endColumn ?? message.column + 1;
|
|
94034
94217
|
let end = import_coc25.Position.create(endLine > 0 ? endLine - 1 : 0, endColumn);
|
|
94035
94218
|
const ms = /['"](.*?)['"]/g.exec(message.message);
|
|
94036
94219
|
if (ms && ms.length > 0) {
|
|
@@ -94046,6 +94229,8 @@ var LintingEngine = class {
|
|
|
94046
94229
|
const diagnostic = import_coc25.Diagnostic.create(range, message.message, severity);
|
|
94047
94230
|
diagnostic.code = message.code;
|
|
94048
94231
|
diagnostic.source = message.provider;
|
|
94232
|
+
diagnostic.fix = message.fix;
|
|
94233
|
+
diagnostic.tags = message.tags;
|
|
94049
94234
|
return diagnostic;
|
|
94050
94235
|
}
|
|
94051
94236
|
shouldLintDocument(document) {
|
|
@@ -94057,16 +94242,19 @@ var LintingEngine = class {
|
|
|
94057
94242
|
if (document.languageId !== PYTHON.language) {
|
|
94058
94243
|
return false;
|
|
94059
94244
|
}
|
|
94060
|
-
const
|
|
94245
|
+
const fsPath = import_coc25.Uri.parse(document.uri).fsPath;
|
|
94246
|
+
if (settings.stdLibs.some((p) => fsPath.startsWith(p))) {
|
|
94247
|
+
return false;
|
|
94248
|
+
}
|
|
94249
|
+
const relativeFileName = import_path5.default.relative(import_coc25.workspace.root, fsPath);
|
|
94061
94250
|
const ignoreMinmatches = settings.linting.ignorePatterns.map((pattern) => new import_minimatch.Minimatch(pattern, { dot: true }));
|
|
94062
94251
|
if (ignoreMinmatches.some((matcher) => matcher.match(import_coc25.Uri.parse(document.uri).fsPath) || matcher.match(relativeFileName))) {
|
|
94063
94252
|
this.outputChannel.appendLine(`${"#".repeat(5)} linting is ignored by python.linting.ignorePatterns`);
|
|
94064
94253
|
return false;
|
|
94065
94254
|
}
|
|
94066
|
-
const
|
|
94067
|
-
const exists = import_fs_extra5.default.existsSync(u.fsPath);
|
|
94255
|
+
const exists = import_fs_extra5.default.existsSync(fsPath);
|
|
94068
94256
|
if (!exists) {
|
|
94069
|
-
this.outputChannel.appendLine(`${"#".repeat(5)} linting is disabled because file is not exists: ${
|
|
94257
|
+
this.outputChannel.appendLine(`${"#".repeat(5)} linting is disabled because file is not exists: ${fsPath}`);
|
|
94070
94258
|
return false;
|
|
94071
94259
|
}
|
|
94072
94260
|
return true;
|
|
@@ -94081,7 +94269,7 @@ var LintingEngine = class {
|
|
|
94081
94269
|
}
|
|
94082
94270
|
throw new Error(`Invalid linter '${Product[product]}'`);
|
|
94083
94271
|
}
|
|
94084
|
-
|
|
94272
|
+
getActiveLinters(resource) {
|
|
94085
94273
|
return this.linters.filter((x) => x.isEnabled(resource));
|
|
94086
94274
|
}
|
|
94087
94275
|
async createLinter(info, outputChannel) {
|
|
@@ -94125,10 +94313,11 @@ var LinterProvider = class {
|
|
|
94125
94313
|
this.context = context;
|
|
94126
94314
|
this.disposables = [];
|
|
94127
94315
|
this.engine = new LintingEngine();
|
|
94128
|
-
this.
|
|
94316
|
+
this.pythonSettings = PythonSettings.getInstance();
|
|
94129
94317
|
import_coc26.workspace.onDidOpenTextDocument((e) => this.onDocumentOpened(e), this.context.subscriptions);
|
|
94130
94318
|
import_coc26.workspace.onDidCloseTextDocument((e) => this.onDocumentClosed(e), this.context.subscriptions);
|
|
94131
94319
|
import_coc26.workspace.onDidSaveTextDocument((e) => this.onDocumentSaved(e), this.context.subscriptions);
|
|
94320
|
+
import_coc26.workspace.onDidChangeTextDocument((e) => this.onDocumentChanged(e), this.context.subscriptions);
|
|
94132
94321
|
const disposable = import_coc26.workspace.onDidChangeConfiguration(this.lintSettingsChangedHandler.bind(this));
|
|
94133
94322
|
this.disposables.push(disposable);
|
|
94134
94323
|
this.disposables.push(import_coc26.commands.registerCommand("python.runLinting", this.runLinting.bind(this)));
|
|
@@ -94153,12 +94342,16 @@ var LinterProvider = class {
|
|
|
94153
94342
|
});
|
|
94154
94343
|
}
|
|
94155
94344
|
onDocumentSaved(document) {
|
|
94156
|
-
if (
|
|
94345
|
+
if (this.pythonSettings.linting.lintOnSave) {
|
|
94157
94346
|
this.engine.lintDocument(document).catch(() => {
|
|
94158
94347
|
});
|
|
94159
|
-
return;
|
|
94160
94348
|
}
|
|
94161
94349
|
}
|
|
94350
|
+
onDocumentChanged(e) {
|
|
94351
|
+
const document = import_coc26.workspace.getDocument(e.textDocument.uri);
|
|
94352
|
+
this.engine.lintDocument(document.textDocument, true).catch(() => {
|
|
94353
|
+
});
|
|
94354
|
+
}
|
|
94162
94355
|
onDocumentClosed(document) {
|
|
94163
94356
|
if (!document || !import_coc26.Uri.parse(document.uri).fsPath || !document.uri) {
|
|
94164
94357
|
return;
|
|
@@ -94538,6 +94731,7 @@ var TestFrameworkProvider = class {
|
|
|
94538
94731
|
if (rangeInRange(range, import_coc28.Range.create(itemStartPosition, itemEndPosition))) {
|
|
94539
94732
|
actions.push({
|
|
94540
94733
|
title: `RUN ${item.value} with ${this.framework}`,
|
|
94734
|
+
kind: import_coc28.CodeActionKind.Empty,
|
|
94541
94735
|
command: {
|
|
94542
94736
|
title: `RUN ${item.value} with ${this.framework}`,
|
|
94543
94737
|
command: "pyright.singleTest"
|