Skip to content

Update typeshed to 80f7beabfbb7 - #11970

Closed
Bill Schnurr (bschnurr) wants to merge 7 commits into
microsoft:mainfrom
bschnurr:bschnurr/typeshed-update-20261103-1006
Closed

Bill Schnurr (bschnurr) wants to merge 7 commits into
microsoft:mainfrom
bschnurr:bschnurr/typeshed-update-20261103-1006

Conversation

@bschnurr

@bschnurr Bill Schnurr (bschnurr) commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Upstream Typeshed update

Update bundled Typeshed from 7030b265d887eeacee07e47aa2cca412b07950c4 to 80f7beabfbb71a634cc3dbca8e418a5da790142c using build/updateTypeshed.py.

Upstream comparison. Includes merged python/typeshed#16745: nullable re.escape diagnostics now identify None, while valid string/buffer, union, AnyStr, and Any inference is preserved. Line-ending-only churn was removed.

Failure classification and test update

One Category A expected Typeshed change: python/typeshed#11844 (6e76a91ed) makes datetime generic over its timezone, defaulting to Any. Update overloadCall1.py to expect datetime[Any] instead of datetime for its existing bare datetime return annotation. No checker implementation changes or diagnostic suppression.

Precision report

The displayed datetime -> datetime[Any] change exposes the new default timezone parameter; the existing return annotation already left timezone unspecified. The re.escape controls preserve existing return precision and reject nullable arguments.

Existing CI changes

This PR also retains its Jest fingerprinting optimization, runner-resource and failure diagnostics, annotation-size limit, and one-worker setting for memory-constrained Mac CI. Those files were preserved unchanged during this refresh.

Validation

  • Core TypeScript build, ESLint, Prettier, and git diff --check: passed.
  • Full suite: 98 suites passed, 1 skipped; the sole failure was the outdated datetime display assertion. After correcting it, the entire affected typeEvaluator6.test.ts suite passed (176 tests); all suites are covered across these runs.
  • Focused overload and constructor controls: 9 passed.
  • Compiled Pyright against the refreshed fallback: verified nullable re.escape errors identify None; string, bytes, bytearray, memoryview, mixed unions, AnyStr, and Any inference controls passed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bschnurr

Copy link
Copy Markdown
Member Author

/benchmark

@rchiodo

Rich Chiodo (rchiodo) commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

🔒 Automated review in progress — Rich Chiodo (@rchiodo) is auto-reviewing this PR.

@rchiodo

Copy link
Copy Markdown
Collaborator

Result: ⚠️ needs-more-tests

Verification details

Verification: Automated verification is best effort. The PR author remains responsible for testing.

Summary: The package build and 57 targeted existing tests passed in the container, including all five regression cases named in the PR. Offline dependency preparation succeeded, and the PR adds no tests. My additional eight-case typing matrix failed because its warning expectations did not account for unavailable WTForms and Markdown runtime sources; this does not establish a PR defect. Coverage remains incomplete, particularly for the changed Authlib async-stream signature. **Reviewer dependency follow-up (nonblocking):** Suggest a separate PR adding `jest@^30.2.0`, `ts-jest@^29.4.7` to the official reviewer dependency declarations, using `packages/pyright-internal/package.json` as the dependency/version evidence. Do not automatically create that PR. This is reviewer environment maintenance, not a required change to the reviewed PR.

Test runs: 4 passed, 1 failed, 1 not run

  • ⚠️ Not run | Dependency and runner discovery | printf 'sandbox=%s\n' "$AUTOMATION_SANDBOX_PROFILE"; node --version; pnpm --version; git log -3 --oneline; git diff --stat HEAD^ HEAD; printf '\nDependency paths\n'; ls -d node_modules packages/pyright-internal/node_modules 2>/dev/null; printf '\nTargeted Jest runner\n'; test -f packages/pyright-internal/node_modules/jest/bin/jest.js && echo present; printf '\nLockfile\n'; head -12 pnpm-lock.yaml
  • ❌ Failed | unrelated to this PR | Temporary typeshed typing matrix | node ./node_modules/jest/bin/jest.js src/tests/verificationTypeshed.test.ts --runInBand
  • ✅ Passed | Focused evaluator regressions | node ./node_modules/jest/bin/jest.js src/tests/typeEvaluator1.test.ts src/tests/typeEvaluator2.test.ts src/tests/typeEvaluator6.test.ts --runInBand --testNamePattern='^(ConstructorCallable1|ConstructorCallable2|Constructor28|Solver7|Call3|OverloadCall3)$' --silent
  • ✅ Passed | Package build | pnpm run build
  • ✅ Passed | Import resolution and typeshed-provider tests | node ./node_modules/jest/bin/jest.js src/tests/importResolver.test.ts src/tests/importResolverSupport.test.ts --runInBand --silent
  • ✅ Passed | Offline dependency preparation | pnpm install --offline --frozen-lockfile
⚠️ Dependency and runner discovery diagnostic output
sandbox=typescript
v24.19.0
11.21.0
fatal: not a git repository
node_modules and the package-local Jest runner were absent. pnpm-lock.yaml was present. Setup subsequently succeeded with pnpm install --offline --frozen-lockfile.
❌ Temporary typeshed typing matrix diagnostic output
Temporary reviewer-authored samples exercised buffers, disabled lru_cache, socket.makefile, set XOR, _colorize, frozendict, Linux constants, WTForms and Markdown across Python 3.11/3.13/3.14/3.15 with Linux/Windows target settings.
All eight cases failed: Expected 0 warnings, got 3.
Import "wtforms" could not be resolved from source
Import "wtforms.validators" could not be resolved from source
Import "markdown.inlinepatterns" could not be resolved from source
The expected error-count check passed before the warning assertion failed. The later Hashable-message assertion was not reached.
Test Suites: 1 failed, 1 total
Tests: 8 failed, 8 total
This was a reviewer-harness warning-expectation failure, not evidence of defective changed stubs. No retry was attempted after the six-command budget was exhausted.

@rchiodo Rich Chiodo (rchiodo) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved via Review Center.

@rchiodo Rich Chiodo (rchiodo) added the review-auto:approved Automated review: no blocking findings (approval posted). label Nov 3, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@rchiodo

Copy link
Copy Markdown
Collaborator

Result: ⚠️ needs-more-tests

Verification details

Verification: Automated verification is best effort. The PR author remains responsible for testing.

Summary: The TypeScript build, 78 existing tests, and six temporary typeshed checks passed in the Linux container after offline dependency preparation. Checks covered the five advertised regressions, import resolution, string utilities, operators, buffer APIs, disabled caching, frozendict covariance, and Python 3.14/3.15 additions. One temporary check expected importing `_colorize` under Python 3.12 to produce an error but received none; its cause is unresolved, so this is not a confirmed PR defect. The PR adds no tests, and third-party stub changes were not comprehensively exercised. **Reviewer dependency follow-up (nonblocking):** Suggest a separate PR adding `jest@^30.2.0`, `ts-jest@^29.4.7` to the official reviewer dependency declarations, using `packages/pyright-internal/package.json` as the dependency/version evidence. Do not automatically create that PR. This is reviewer environment maintenance, not a required change to the reviewed PR.

Test runs: 4 passed, 1 failed, 1 not run

  • ⚠️ Not run | Dependency and test-discovery preflight | printf 'Profile: %s\n' "$AUTOMATION_SANDBOX_PROFILE"; uname -s; node --version; pnpm --version; git log -3 --oneline; git diff HEAD1 HEAD --stat; git diff HEAD1 HEAD --name-only -- packages/pyright-internal/src/tests; test -f pnpm-lock.yaml && printf 'pnpm lockfile present\n'; if test -f packages/pyright-internal/node_modules/jest/bin/jest.js; then printf 'package-local Jest present\n'; else printf 'package-local Jest missing\n'; fi; if test -d node_modules; then printf 'root node_modules present\n'; else printf 'root node_modules missing\n'; fi
  • ❌ Failed | relationship unknown | Temporary typeshed checks and additional existing regressions | node ./node_modules/jest/bin/jest.js src/tests/verificationTypeshed.test.ts src/tests/typeEvaluator1.test.ts src/tests/typeEvaluator6.test.ts src/tests/typeEvaluator8.test.ts --runInBand --testNamePattern='^(Verification .*|Builtins1|OverloadCall3|Operator[0-9]+)$'
  • ✅ Passed | Advertised focused regression cases | node ./node_modules/jest/bin/jest.js src/tests/typeEvaluator1.test.ts src/tests/typeEvaluator2.test.ts src/tests/typeEvaluator6.test.ts --runInBand --testNamePattern='^(ConstructorCallable1|ConstructorCallable2|Constructor28|Solver7|Call3)$'
  • ✅ Passed | Import resolution, typeshed metadata, and string utilities | node ./node_modules/jest/bin/jest.js src/tests/importResolver.test.ts src/tests/importResolverSupport.test.ts src/tests/stringUtils.test.ts --runInBand
  • ✅ Passed | Offline dependency preparation | pnpm install --offline --frozen-lockfile --filter pyright-internal...
  • ✅ Passed | TypeScript build | pnpm run build
⚠️ Dependency and test-discovery preflight diagnostic output
Profile: typescript
Linux
Node v24.19.0; pnpm 11.21.0
pnpm lockfile present
package-local Jest missing
root node_modules missing
packages/pyright-internal/package.json declares jest ^30.2.0 and ts-jest ^29.4.7. Tests were unavailable at preflight; the subsequent offline install succeeded. Git history checks also failed because the container source copy has no .git directory.
❌ Temporary typeshed checks and additional existing regressions diagnostic output
Created temporary verificationTypeshed.test.ts and Python samples in the disposable container using the existing TestUtils analyzer harness.
PASS src/tests/typeEvaluator8.test.ts
FAIL src/tests/verificationTypeshed.test.ts
  Verification colorize minimum Python version
  Expected 1 errors, got 0
  at verificationTypeshed.test.ts:79:5
PASS src/tests/typeEvaluator6.test.ts
PASS src/tests/typeEvaluator1.test.ts
Test Suites: 1 failed, 3 passed, 4 total
Tests: 1 failed, 589 skipped, 20 passed, 610 total
All 14 selected existing cases passed. Six temporary checks passed: lru_cache, frozendict, buffers, socket buffering, colorize themes, and Linux additions. The Python 3.12 import assertion failed before the Python 3.13 branch ran. Import-resolution causality was not established; no retry was attempted.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

- uses: ./.github/actions/choose-npm-install

- name: Report test runner resources

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Info · Optional note

The PR summary says that only typeshed-fallback changes, but this PR also changes Jest configuration and adds workflow diagnostics. Please update the summary to describe that additional scope.

[verified]

@rchiodo

Copy link
Copy Markdown
Collaborator

Result: ⚠️ partially-verified

Verification details

Verification: Automated verification is best effort. The PR author remains responsible for testing.

Summary: Ran 66 existing tests and 8 reviewer-authored Typeshed checks; all passed. Also exercised the workflow’s resource report and diagnostics for successful, failing, and missing Jest results. Dependencies were restored successfully from the offline cache, and the PR adds no tests. Verification is partial: third-party stub changes and the macOS/Windows CI paths were not comprehensively exercised. **Reviewer dependency follow-up (nonblocking):** Suggest a separate PR adding `jest@^30.2.0`, `ts-jest@^29.4.7`, `typescript@~6.0.3` to the official reviewer dependency declarations, using `packages/pyright-internal/package.json` as the dependency/version evidence. Do not automatically create that PR. This is reviewer environment maintenance, not a required change to the reviewed PR.

Test runs: 5 passed, 1 skipped, 1 not run

  • ⚠️ Not run | Dependency and test discovery | printf 'AUTOMATION_SANDBOX_PROFILE=%s\n' "$AUTOMATION_SANDBOX_PROFILE"; node --version; pnpm --version; git status --short; git log -3 --oneline; git diff HEAD~1 HEAD --stat; node - <<'NODE'
    const fs = require('fs');
    for (const p of ['pnpm-lock.yaml','node_modules','packages/pyright-internal/node_modules','packages/pyright-internal/node_modules/jest/bin/jest.js']) console.log(p + ': ' + fs.existsSync(p));
    for (const p of ['packages/pyright-internal/package.json']) { const m=JSON.parse(fs.readFileSync(p,'utf8')); console.log(JSON.stringify({name:m.name,scripts:m.scripts,devDependencies:m.devDependencies})); }
    const dir='packages/pyright-internal/src/tests'; console.log(fs.readdirSync(dir).filter(p=>/typeEvaluator|typeStub|importResolver|string|fingerprint|fourSlash/i.test(p)).join('\n'));
    NODE
  • ⏩ Skipped | macOS memory and swap diagnostics
  • ✅ Passed | Focused evaluator regressions | node ./node_modules/jest/bin/jest.js src/tests/typeEvaluator1.test.ts src/tests/typeEvaluator2.test.ts src/tests/typeEvaluator6.test.ts --runInBand --testNamePattern='^(ConstructorCallable1|ConstructorCallable2|Constructor28|Solver7|Call3|OverloadCall3|Builtins1)$' --json --outputFile=/tmp/pyright-focused-results.json
  • ✅ Passed | Import resolution and string fingerprint regressions | node ./node_modules/jest/bin/jest.js src/tests/importResolver.test.ts src/tests/importResolverSupport.test.ts src/tests/stringUtils.test.ts --runInBand
  • ✅ Passed | Offline dependency preparation | pnpm install --offline --frozen-lockfile --filter pyright-internal
  • ✅ Passed | Targeted Typeshed behavior checks | cat > src/tests/reviewerTypeshed.test.ts <<'EOF'
    import * as assert from 'assert';
    import * as fs from 'fs';
    import { ConfigOptions } from '../common/configOptions';
    import { Uri } from '../common/uri/uri';
    import * as T from './testUtils';
    const cases: [string, number, string, number][] = [
    ['buffers', 13, import re, codecs from email.base64mime import body_encode, header_length from encodings.cp037 import Codec from typing import assert_type m = memoryview(b&#x27;abc&#x27;) assert_type(re.escape(m), bytes) assert_type(re.escape(&#x27;abc&#x27;), str) assert_type(codecs.Codec().decode(m), tuple[str, int]) assert_type(Codec().decode(bytearray(b&#x27;abc&#x27;)), tuple[str, int]) assert_type(body_encode(m), str) assert_type(header_length(m), int) , 0],
    ['zero_cache', 13, from functools import lru_cache @lru_cache(0) def zero(x: list[int]) -&gt; int: return len(x) @lru_cache(False) def disabled(x: list[int]) -&gt; int: return len(x) @lru_cache(1) def enabled(x: list[int]) -&gt; int: return len(x) a: int = zero([1]) b: int = disabled([1]) enabled([1]) , 1],
    ['frozendict_covariance', 15, from typing import assert_type def f(x: frozendict[str, int]) -&gt; frozendict[str, object]: assert_type(x.copy(), frozendict[str, int]) assert_type(x.get(&#x27;x&#x27;), int | None) return x , 0],
    ['colorize_313', 13, from _colorize import get_colors, ANSIColors from typing import assert_type assert_type(get_colors(), ANSIColors) , 0],
    ['colorize_314', 14, from _colorize import get_theme, Theme from typing import assert_type assert_type(get_theme().copy_with(), Theme) assert_type(get_theme().argparse.usage, str) , 0],
    ['colorize_315', 15, from _colorize import get_theme from typing import assert_type assert_type(get_theme().live_profiler.title_fg, int) assert_type(get_theme().unittest.passed, str) , 0],
    ['socket_binary', 13, from socket import socket, SocketIO from io import BufferedRWPair, BufferedReader, BufferedWriter from typing import assert_type def f(s: socket, buffering: int): assert_type(s.makefile(&#x27;rb&#x27;, buffering), SocketIO | BufferedRWPair | BufferedReader | BufferedWriter) , 0],
    ['linux_315', 15, from os import RWF_ATOMIC, STATX_SUBVOL, statx_result from socket import SO_PASSRIGHTS from typing import assert_type assert_type(RWF_ATOMIC, int) assert_type(STATX_SUBVOL, int) assert_type(SO_PASSRIGHTS, int) def f(s: statx_result): assert_type(s.stx_subvol, int | None) , 0],
    ];
    test.each(cases)('%s', (name, minor, source, errors) => {
    const file = 'reviewer_' + name + '.py';
    fs.writeFileSync(T.resolveSampleFilePath(file), source);
    try {
    const config = new ConfigOptions(Uri.empty());
    config.defaultPythonVersion = { major: 3, minor };
    config.defaultPythonPlatform = 'Linux';
    const results = T.typeAnalyzeSampleFiles([file], config);
    assert.strictEqual(results[0].errors.length, errors, results[0].errors.map(e => e.message).join('\n'));
    if (errors) assert.strictEqual(results[0].errors[0].getRule(), 'reportArgumentType');
    } finally { fs.unlinkSync(T.resolveSampleFilePath(file)); }
    });
    EOF
    node ./node_modules/jest/bin/jest.js src/tests/reviewerTypeshed.test.ts --runInBand
  • ✅ Passed | Workflow resource and diagnostic scripts | node <<'NODE'
    const fs = require('fs');
    const assert = require('assert/strict');
    const { spawnSync } = require('child_process');
    const yaml = require('yaml');
    const steps = yaml.parse(fs.readFileSync('.github/workflows/validation.yml', 'utf8')).jobs.test.steps;
    const cwd = 'packages/pyright-internal';
    function execute(name) {
    const step = steps.find(s => s.name === name);
    return spawnSync('bash', ['-c', step.run], { cwd, encoding: 'utf8' });
    }
    const resources = execute('Report test runner resources');
    assert.equal(resources.status, 0, resources.stderr);
    assert.match(resources.stdout, /::notice title=Test runner resources::/);
    console.log(resources.stdout.trim());
    const file = cwd + '/test-results.json';
    try {
    fs.copyFileSync('/tmp/pyright-focused-results.json', file);
    let result = execute('Report test diagnostics');
    assert.equal(result.status, 0, result.stderr);
    assert.match(result.stdout, /"passedTests":7/);
    assert.match(result.stdout, /::notice title=Jest slow suites::/);
    console.log('Actual targeted Jest JSON: summary and slow suites passed');
    const failed = JSON.parse(fs.readFileSync(file, 'utf8'));
    failed.success = false; failed.numFailedTests = 1; failed.numFailedTestSuites = 1;
    const suite = failed.testResults[0]; suite.status = 'failed'; suite.message = 'fixture suite failure';
    suite.assertionResults[0].status = 'failed'; suite.assertionResults[0].failureMessages = ['fixture test failure\n100%'];
    fs.writeFileSync(file, JSON.stringify(failed));
    result = execute('Report test diagnostics');
    assert.equal(result.status, 0, result.stderr);
    assert.match(result.stdout, /::notice title=Jest failing suites::/);
    assert.match(result.stdout, /::notice title=Jest failing tests::/);
    assert.match(result.stdout, /%0A100%25/);
    console.log('Failure fixture: suite/test failure notices and escaping passed');
    fs.unlinkSync(file);
    result = execute('Report test diagnostics');
    assert.notEqual(result.status, 0);
    assert.match(result.stdout, /::notice title=Jest results missing::/);
    assert.match(result.stderr, /Error: Jest results missing/);
    console.log('Missing JSON: expected notice and nonzero exit passed');
    console.log('Platform=' + process.platform + '; darwin vm_stat/sysctl branches not exercised');
    } finally { if (fs.existsSync(file)) fs.unlinkSync(file); }
    NODE
⚠️ Dependency and test discovery diagnostic output
Container profile: typescript; Node v24.19.0; pnpm 11.21.0.
pnpm-lock.yaml: true
node_modules: false
packages/pyright-internal/node_modules: false
packages/pyright-internal/node_modules/jest/bin/jest.js: false
Declared test dependencies were initially unavailable. The subsequent pnpm install --offline --frozen-lockfile --filter pyright-internal succeeded, enabling targeted tests. Git probes could not run because the container source copy lacks Git metadata; discovery itself exited 0.
⏩ macOS memory and swap diagnostics diagnostic output
validation.yml runs vm_stat and sysctl vm.swapusage only when process.platform === 'darwin'. Actual execution platform was linux, so these branches were not exercised.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

This comment has been minimized.

@rchiodo

Copy link
Copy Markdown
Collaborator

Result: ⚠️ partially-verified

Verification details

Verification: Automated verification is best effort. The PR author remains responsible for testing.

Summary: In the disposable Linux container, 48 existing Jest tests and six temporary type-analysis checks passed. Smoke checks also passed for the changed CI resource and diagnostic reporters, including failing-result and missing-JSON handling. Missing Node dependencies were restored successfully using the offline lockfile-based install; no test failures occurred. The PR adds no tests, and verification remains partial: third-party stub changes, macOS-specific diagnostics, and full build/style/CI checks were not exercised. **Reviewer dependency follow-up (nonblocking):** Suggest a separate PR adding `jest ^30.2.0`, `ts-jest ^29.4.7`, `typescript ~6.0.3` to the official reviewer dependency declarations, using `packages/pyright-internal/package.json` as the dependency/version evidence. Do not automatically create that PR. This is reviewer environment maintenance, not a required change to the reviewed PR.

Test runs: 5 passed, 2 not run

  • ⚠️ Not run | Dependency and test-discovery preflight | printf 'Sandbox profile: %s\n' "$AUTOMATION_SANDBOX_PROFILE"; node --version; pnpm --version; git log -3 --oneline; git diff HEAD~1 HEAD --name-status; printf '\nDependency availability\n'; node -e "for (const p of ['jest/package.json','ts-jest/package.json','typescript/package.json']) { try { const f=require.resolve(p,{paths:['./packages/pyright-internal']}); console.log(p, f, require(f).version); } catch { console.log('MISSING',p); } }"; printf '\nLockfiles\n'; ls pnpm-lock.yaml pnpm-workspace.yaml; printf '\nTargeted test declarations\n'; git grep -n -E 'ConstructorCallable1|ConstructorCallable2|Constructor28|Solver7|Call3|lru_cache|frozendict|re.escape|_colorize' -- packages/pyright-internal/src/tests/typeEvaluator*.test.ts packages/pyright-internal/src/tests/samples | head -100
  • ⚠️ Not run | macOS-specific memory and swap reporting
  • ✅ Passed | Focused constructor, solver, call, and cache regressions | node ./node_modules/jest/bin/jest.js src/tests/typeEvaluator1.test.ts src/tests/typeEvaluator2.test.ts src/tests/typeEvaluator6.test.ts --runInBand --testNamePattern='^(ConstructorCallable1|ConstructorCallable2|Constructor28|Solver7|Call3|OverloadCall3)$'
  • ✅ Passed | String fingerprinting and import resolution | node ./node_modules/jest/bin/jest.js src/tests/stringUtils.test.ts src/tests/importResolver.test.ts --runInBand --json --outputFile=/tmp/pyright-verification-results.json
  • ✅ Passed | Offline dependency preparation | pnpm install --offline --frozen-lockfile --filter pyright-internal
  • ✅ Passed | Temporary updated-stdlib type-analysis checks | cat > src/tests/reviewerTypeshed.test.ts <<'EOF'
    import * as fs from 'fs';
    import * as path from 'path';
    import { ConfigOptions } from '../common/configOptions';
    import { Uri } from '../common/uri/uri';
    import * as TestUtils from './testUtils';

const cases: [string, number, number, string][] = [
['buffers and disabled cache', 11, 0, from typing import assert_type from functools import lru_cache from codecs import Codec from encodings.cp037 import Codec as CP037 from email import base64mime import re @lru_cache(maxsize=0) def uncached(value: list[int]) -&gt; int: return len(value) @lru_cache(maxsize=False) def uncached_false(value: list[int]) -&gt; int: return len(value) assert_type(uncached([1]), int) assert_type(uncached_false([1]), int) assert_type(uncached.cache_parameters()[&#x27;maxsize&#x27;], int | None) assert_type(re.escape(memoryview(b&#x27;abc&#x27;)), bytes) assert_type(re.escape(&#x27;abc&#x27;), str) assert_type(Codec().decode(memoryview(b&#x27;abc&#x27;)), tuple[str, int]) assert_type(CP037().decode(bytearray(b&#x27;abc&#x27;)), tuple[str, int]) assert_type(base64mime.body_encode(memoryview(b&#x27;abc&#x27;)), str)],
['active cache rejects unhashable', 11, 1, from functools import lru_cache @lru_cache(maxsize=1) def cached(value: list[int]) -&gt; int: return len(value) cached([1])],
['frozendict covariance and binary socket', 15, 0, from typing import assert_type from socket import socket, SocketIO from io import BufferedReader, BufferedWriter, BufferedRWPair from builtins import frozendict def check(value: frozendict[str, int], sock: socket, buffering: int) -&gt; frozendict[str, object]: assert_type(value.copy(), frozendict[str, int]) assert_type(value.get(&#x27;key&#x27;), int | None) assert_type(sock.makefile(&#x27;rb&#x27;, buffering), SocketIO | BufferedRWPair | BufferedReader | BufferedWriter) return value],
['colorize 3.13', 13, 0, from typing import assert_type from _colorize import ANSIColors, get_colors, can_colorize assert_type(get_colors(), ANSIColors) assert_type(can_colorize(), bool)],
['colorize 3.14', 14, 0, from typing import assert_type from _colorize import Theme, get_theme, decolor assert_type(get_theme().copy_with(), Theme) assert_type(Theme.no_colors(), Theme) assert_type(decolor(&#x27;abc&#x27;), str)],
['colorize 3.15 and linux additions', 15, 0, from typing import assert_type from _colorize import Theme, Argparse, LiveProfiler, get_theme from os import RWF_ATOMIC, STATX_SUBVOL, statx_result from socket import SO_PASSRIGHTS assert_type(get_theme().copy_with(argparse=Argparse()), Theme) assert_type(LiveProfiler().title_fg, int) assert_type(RWF_ATOMIC, int) assert_type(STATX_SUBVOL, int) assert_type(SO_PASSRIGHTS, int) def check(value: statx_result) -&gt; None: assert_type(value.stx_subvol, int | None)],
];
test.each(cases)('%s', (_name, minor, errors, source) => {
const name = 'reviewerTypeshedSample.py';
const filename = path.join(__dirname, 'samples', name);
fs.writeFileSync(filename, source);
try {
const options = new ConfigOptions(Uri.empty());
options.defaultPythonVersion = { major: 3, minor };
options.defaultPythonPlatform = 'Linux';
TestUtils.validateResults(TestUtils.typeAnalyzeSampleFiles([name], options), errors);
} finally {
fs.unlinkSync(filename);
}
});
EOF
node ./node_modules/jest/bin/jest.js src/tests/reviewerTypeshed.test.ts --runInBand

  • ✅ Passed | Production CI reporter smoke checks | node <<'NODE'
    const fs = require('fs');
    const assert = require('assert');
    const { spawnSync } = require('child_process');
    const workflow = fs.readFileSync('../../.github/workflows/validation.yml', 'utf8');
    const scripts = [...workflow.matchAll(/ node <<'NODE'\n([\s\S]*?)\n NODE/g)].map(m => m[1].replace(/^ /gm, ''));
    assert.strictEqual(scripts.length, 2);
    for (const workers of ['', '--maxWorkers=1']) {
    const result = spawnSync(process.execPath, ['-e', scripts[0]], { encoding: 'utf8', env: { ...process.env, JEST_WORKER_ARGS: workers } });
    assert.strictEqual(result.status, 0, result.stderr);
    assert.match(result.stdout, /::notice title=Test runner resources::/);
    if (workers) assert.match(result.stdout, /"jestWorkers":1/);
    console.log(PASS production resource reporter: worker args=${workers || &#x27;(default)&#x27;}, actual platform=${process.platform});
    }
    const filename = 'test-results.json';
    const original = fs.existsSync(filename) ? fs.readFileSync(filename) : undefined;
    try {
    const results = JSON.parse(fs.readFileSync('/tmp/pyright-verification-results.json', 'utf8'));
    fs.writeFileSync(filename, JSON.stringify(results));
    let result = spawnSync(process.execPath, ['-e', scripts[1]], { encoding: 'utf8' });
    assert.strictEqual(result.status, 0, result.stderr);
    assert.match(result.stdout, /"passedTests":42/);
    assert.match(result.stdout, /::notice title=Jest slow suites::/);
    console.log('PASS production diagnostics: actual passing Jest JSON (42 tests)');
    results.testResults[0].status = 'failed';
    results.testResults[0].message = 'fixture suite failure';
    results.testResults[0].assertionResults[0].status = 'failed';
    results.testResults[0].assertionResults[0].failureMessages = ['fixture assertion failure'];
    results.numFailedTests = 1;
    results.numFailedTestSuites = 1;
    results.success = false;
    fs.writeFileSync(filename, JSON.stringify(results));
    result = spawnSync(process.execPath, ['-e', scripts[1]], { encoding: 'utf8' });
    assert.strictEqual(result.status, 0, result.stderr);
    assert.match(result.stdout, /::notice title=Jest failing suites::/);
    assert.match(result.stdout, /::notice title=Jest failing tests::/);
    assert.match(result.stdout, /fixture assertion failure/);
    console.log('PASS production diagnostics: synthetic failing suite and assertion JSON');
    fs.unlinkSync(filename);
    result = spawnSync(process.execPath, ['-e', scripts[1]], { encoding: 'utf8' });
    assert.notStrictEqual(result.status, 0);
    assert.match(result.stdout, /::notice title=Jest results missing::/);
    assert.match(result.stderr, /Error: Jest results missing/);
    console.log('PASS production diagnostics: missing JSON emits notice and exits nonzero');
    } finally {
    if (original) fs.writeFileSync(filename, original);
    else if (fs.existsSync(filename)) fs.unlinkSync(filename);
    }
    console.log(NOT RUN macOS vm_stat/sysctl branches: require darwin, actual platform=${process.platform});
    NODE
⚠️ Dependency and test-discovery preflight diagnostic output
Sandbox profile: typescript
Node: v24.19.0; pnpm: 11.21.0
MISSING jest/package.json
MISSING ts-jest/package.json
MISSING typescript/package.json
Both pnpm-lock.yaml and pnpm-workspace.yaml exist. packages/pyright-internal/package.json declares jest ^30.2.0, ts-jest ^29.4.7, and typescript ~6.0.3. The copied container snapshot lacked Git metadata, so Git-based discovery was unavailable; repository navigation supplied test declarations instead. Subsequent setup with `pnpm install --offline --frozen-lockfile --filter pyright-internal` succeeded, and targeted tests then passed.
⚠️ macOS-specific memory and swap reporting diagnostic output
The workflow guards vm_stat and sysctl vm.swapusage with process.platform === 'darwin'. Execution reported: NOT RUN macOS vm_stat/sysctl branches: require darwin, actual platform=linux.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Includes python/typeshed#16745, fixing nullable re.escape diagnostics.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Category A: python/typeshed#11844 (6e76a91ed) makes datetime generic over tzinfo, defaulting to Any. The existing bare datetime return annotation now displays as datetime[Any]; this retains its unspecified timezone contract without weakening an inferred concrete type.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bschnurr Bill Schnurr (bschnurr) changed the title Update typeshed to d6dcca2a0fb9 Update typeshed to 80f7beabfbb7 Nov 12, 2026
@rchiodo

Copy link
Copy Markdown
Collaborator

Reviewed commit: 7023ce2a9295072fd526ae7220606cc5b335cdee

Result: 🔴 could-not-verify

Verification details

Verification: Automated verification is best effort. The PR author remains responsible for testing.

Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Podman machine &#x27;pyrx-automation&#x27; is not running.

Test runs: none recorded.

@github-actions

Copy link
Copy Markdown
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

ibis (https://github.com/ibis-project/ibis)
-   .../projects/ibis/ibis/backends/exasol/__init__.py:309:33 - error: Cannot access attribute "tz_convert" for class "datetime"
+   .../projects/ibis/ibis/backends/exasol/__init__.py:309:33 - error: Cannot access attribute "tz_convert" for class "datetime[Unknown]"
-   .../projects/ibis/ibis/backends/tests/sql/test_compiler.py:168:33 - error: Argument of type "datetime" cannot be assigned to parameter "the_date" of type "Value | Deferred | str" in function "mutate"
+   .../projects/ibis/ibis/backends/tests/sql/test_compiler.py:168:33 - error: Argument of type "datetime[None]" cannot be assigned to parameter "the_date" of type "Value | Deferred | str" in function "mutate"
-     Type "datetime" is not assignable to type "Value | Deferred | str"
+     Type "datetime[None]" is not assignable to type "Value | Deferred | str"
-       "datetime" is not assignable to "Value"
+       "datetime[None]" is not assignable to "Value"
-       "datetime" is not assignable to "Deferred"
+       "datetime[None]" is not assignable to "Deferred"
-       "datetime" is not assignable to "str" (reportArgumentType)
+       "datetime[None]" is not assignable to "str" (reportArgumentType)
-   .../projects/ibis/ibis/expr/api.py:2477:15 - error: Argument of type "datetime | TimestampValue" cannot be assigned to parameter "start" of type "Value[Timestamp, Any]" in function "__init__"
+   .../projects/ibis/ibis/expr/api.py:2477:15 - error: Argument of type "datetime[Any] | TimestampValue" cannot be assigned to parameter "start" of type "Value[Timestamp, Any]" in function "__init__"
-     Type "datetime | TimestampValue" is not assignable to type "Value[Timestamp, Any]"
+     Type "datetime[Any] | TimestampValue" is not assignable to type "Value[Timestamp, Any]"
-   .../projects/ibis/ibis/expr/api.py:2478:14 - error: Argument of type "datetime | TimestampValue" cannot be assigned to parameter "stop" of type "Value[Timestamp, Any]" in function "__init__"
+   .../projects/ibis/ibis/expr/api.py:2478:14 - error: Argument of type "datetime[Any] | TimestampValue" cannot be assigned to parameter "stop" of type "Value[Timestamp, Any]" in function "__init__"
-     Type "datetime | TimestampValue" is not assignable to type "Value[Timestamp, Any]"
+     Type "datetime[Any] | TimestampValue" is not assignable to type "Value[Timestamp, Any]"
-   .../projects/ibis/ibis/expr/types/temporal.py:1231:52 - error: Argument of type "datetime | Value" cannot be assigned to parameter "right" of type "Value[Timestamp, Any]" in function "__init__"
+   .../projects/ibis/ibis/expr/types/temporal.py:1231:52 - error: Argument of type "datetime[Any] | Value" cannot be assigned to parameter "right" of type "Value[Timestamp, Any]" in function "__init__"
-     Type "datetime | Value" is not assignable to type "Value[Timestamp, Any]"
+     Type "datetime[Any] | Value" is not assignable to type "Value[Timestamp, Any]"
-   .../projects/ibis/ibis/formats/pandas.py:173:30 - error: Cannot access attribute "tolist" for class "datetime"
+   .../projects/ibis/ibis/formats/pandas.py:173:30 - error: Cannot access attribute "tolist" for class "datetime[Any]"
-   .../projects/ibis/ibis/formats/pandas.py:178:26 - error: Cannot access attribute "item" for class "datetime"
+   .../projects/ibis/ibis/formats/pandas.py:178:26 - error: Cannot access attribute "item" for class "datetime[Any]"

werkzeug (https://github.com/pallets/werkzeug)
-   .../projects/werkzeug/tests/test_local.py:327:20 - error: Argument of type "LocalProxy[Any]" cannot be assigned to parameter "real" of type "str | SupportsComplex | SupportsFloat | SupportsIndex | complex" in function "__new__"
+   .../projects/werkzeug/tests/test_local.py:327:20 - error: Argument of type "LocalProxy[Any]" cannot be assigned to parameter "real" of type "str | SupportsComplex | SupportsFloat | SupportsIndex | complex | float | int" in function "__new__"
-     Type "LocalProxy[Any]" is not assignable to type "str | SupportsComplex | SupportsFloat | SupportsIndex | complex"
+     Type "LocalProxy[Any]" is not assignable to type "str | SupportsComplex | SupportsFloat | SupportsIndex | complex | float | int"
-   .../projects/werkzeug/tests/test_local.py:327:20 - error: Argument of type "LocalProxy[Any]" cannot be assigned to parameter "real" of type "str | SupportsComplex | SupportsFloat | SupportsIndex | complex" in function "__new__"
+   .../projects/werkzeug/tests/test_local.py:327:20 - error: Argument of type "LocalProxy[Any]" cannot be assigned to parameter "real" of type "str | SupportsComplex | SupportsFloat | SupportsIndex | complex | float | int" in function "__new__"
-     Type "LocalProxy[Any]" is not assignable to type "str | SupportsComplex | SupportsFloat | SupportsIndex | complex"
+     Type "LocalProxy[Any]" is not assignable to type "str | SupportsComplex | SupportsFloat | SupportsIndex | complex | float | int"

openlibrary (https://github.com/internetarchive/openlibrary)
+   .../projects/openlibrary/openlibrary/api.py:200:17 - error: "datetime[Unknown]" is not iterable (reportGeneralTypeIssues)
-   .../projects/openlibrary/openlibrary/api.py:200:17 - error: "datetime" is not iterable (reportGeneralTypeIssues)
+   .../projects/openlibrary/openlibrary/api.py:200:17 - error: "datetime[Any]" is not iterable (reportGeneralTypeIssues)
-   .../projects/openlibrary/openlibrary/api.py:200:17 - error: "datetime" is not iterable
+   .../projects/openlibrary/openlibrary/api.py:200:17 - error: "datetime[Unknown]" is not iterable
+   .../projects/openlibrary/openlibrary/api.py:200:17 - error: "datetime[Any]" is not iterable
+     "__iter__" method not defined (reportGeneralTypeIssues)
-   .../projects/openlibrary/openlibrary/api.py:203:36 - error: Argument of type "Generator[Unknown, Unknown, None] | list[list[Unknown] | Reference | Text | datetime | Unknown | dict[Unknown, list[Unknown] | Reference | Text | datetime | Unknown | dict[Unknown, Unknown]]] | Reference | Text | datetime | Unknown | dict[Unknown, list[Unknown] | Reference | Text | datetime | Unknown | dict[Unknown, Unknown]]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+   .../projects/openlibrary/openlibrary/api.py:203:36 - error: Argument of type "Generator[Unknown, Unknown, None] | list[list[Unknown] | Reference | Text | datetime[Unknown] | datetime[Any] | Unknown | dict[Unknown, list[Unknown] | Reference | Text | datetime[Unknown] | datetime[Any] | Unknown | dict[Unknown, Unknown]]] | Reference | Text | datetime[Unknown] | datetime[Any] | Unknown | dict[Unknown, list[Unknown] | Reference | Text | datetime[Unknown] | datetime[Any] | Unknown | dict[Unknown, Unknown]]" cannot be assigned to parameter "obj" of type "Sized" in function "len"
-     Type "Generator[Unknown, Unknown, None] | list[list[Unknown] | Reference | Text | datetime | Unknown | dict[Unknown, list[Unknown] | Reference | Text | datetime | Unknown | dict[Unknown, Unknown]]] | Reference | Text | datetime | Unknown | dict[Unknown, list[Unknown] | Reference | Text | datetime | Unknown | dict[Unknown, Unknown]]" is not assignable to type "Sized"
+     Type "Generator[Unknown, Unknown, None] | list[list[Unknown] | Reference | Text | datetime[Unknown] | datetime[Any] | Unknown | dict[Unknown, list[Unknown] | Reference | Text | datetime[Unknown] | datetime[Any] | Unknown | dict[Unknown, Unknown]]] | Reference | Text | datetime[Unknown] | datetime[Any] | Unknown | dict[Unknown, list[Unknown] | Reference | Text | datetime[Unknown] | datetime[Any] | Unknown | dict[Unknown, Unknown]]" is not assignable to type "Sized"
-       "datetime" is incompatible with protocol "Sized"
+       "Generator[Unknown, Unknown, None]" is incompatible with protocol "Sized"
+   .../projects/openlibrary/openlibrary/api.py:292:16 - error: No overloads for "__new__" match the provided arguments (reportCallIssue)
-   .../projects/openlibrary/openlibrary/api.py:292:29 - error: Argument of type "int" cannot be assigned to parameter "tzinfo" of type "_TzInfo | None" in function "__new__"
+   .../projects/openlibrary/openlibrary/api.py:292:29 - error: Argument of type "int" cannot be assigned to parameter "tzinfo" of type "_TzInfo" in function "__new__"
-     Type "int" is not assignable to type "_TzInfo | None"
-       "int" is not assignable to "tzinfo"
-       "int" is not assignable to "None" (reportArgumentType)
+     "int" is not assignable to "tzinfo" (reportArgumentType)
-   .../projects/openlibrary/openlibrary/bookworm/tests/test_harvest.py:113:20 - error: Argument of type "Generator[datetime | None, None, None]" cannot be assigned to parameter "iterable" of type "Iterable[SupportsRichComparisonT@max]" in function "max"
+   .../projects/openlibrary/openlibrary/bookworm/tests/test_harvest.py:113:20 - error: Argument of type "Generator[datetime[Any] | None, None, None]" cannot be assigned to parameter "iterable" of type "Iterable[SupportsRichComparisonT@max]" in function "max"
-     "Generator[datetime | None, None, None]" is not assignable to "Iterable[SupportsRichComparisonT@max]"
+     "Generator[datetime[Any] | None, None, None]" is not assignable to "Iterable[SupportsRichComparisonT@max]"
-       Type parameter "_T_co@Iterable" is covariant, but "datetime | None" is not a subtype of "SupportsRichComparisonT@max"
+       Type parameter "_T_co@Iterable" is covariant, but "datetime[Any] | None" is not a subtype of "SupportsRichComparisonT@max"
-         Type "datetime | None" is not assignable to type "SupportsRichComparison"
+         Type "datetime[Any] | None" is not assignable to type "SupportsRichComparison"
-           Type "datetime | None" is not assignable to type "SupportsRichComparison"
+           Type "datetime[Any] | None" is not assignable to type "SupportsRichComparison"
-   .../projects/openlibrary/openlibrary/bookworm/tests/test_harvest.py:400:48 - error: Argument of type "None" cannot be assigned to parameter "last_updated" of type "datetime" in function "advance"
+   .../projects/openlibrary/openlibrary/bookworm/tests/test_harvest.py:400:48 - error: Argument of type "None" cannot be assigned to parameter "last_updated" of type "datetime[Any]" in function "advance"
-     "None" is not assignable to "datetime" (reportArgumentType)
+     "None" is not assignable to "datetime[Any]" (reportArgumentType)
-   .../projects/openlibrary/openlibrary/bookworm/tests/test_harvest.py:566:12 - error: Operator ">" not supported for types "datetime | None" and "datetime | None"
+   .../projects/openlibrary/openlibrary/bookworm/tests/test_harvest.py:566:12 - error: Operator ">" not supported for types "datetime[Any] | None" and "datetime[Any] | None"
-     Operator ">" not supported for types "datetime" and "None"
+     Operator ">" not supported for types "datetime[Any]" and "None"
-     Operator ">" not supported for types "None" and "datetime"
+     Operator ">" not supported for types "None" and "datetime[Any]"
-   .../projects/openlibrary/openlibrary/plugins/openlibrary/partials.py:273:34 - error: Argument of type "datetime | None" cannot be assigned to parameter "then" of type "datetime" in function "datestr"
+   .../projects/openlibrary/openlibrary/plugins/openlibrary/partials.py:273:34 - error: Argument of type "datetime[Unknown] | datetime[Any] | None" cannot be assigned to parameter "then" of type "datetime[Any]" in function "datestr"
-     Type "datetime | None" is not assignable to type "datetime"
+     Type "datetime[Unknown] | datetime[Any] | None" is not assignable to type "datetime[Any]"
-       "None" is not assignable to "datetime" (reportArgumentType)
+       "None" is not assignable to "datetime[Any]" (reportArgumentType)
-   .../projects/openlibrary/openlibrary/tests/core/test_booknotes.py:166:16 - error: Operator ">=" not supported for types "datetime | None" and "datetime | None"
+   .../projects/openlibrary/openlibrary/tests/core/test_booknotes.py:166:16 - error: Operator ">=" not supported for types "datetime[Any] | None" and "datetime[Any] | None"
-     Operator ">=" not supported for types "datetime" and "None"
+     Operator ">=" not supported for types "datetime[Any]" and "None"
-     Operator ">=" not supported for types "None" and "datetime"
+     Operator ">=" not supported for types "None" and "datetime[Any]"
-   .../projects/openlibrary/openlibrary/tests/core/test_yearly_reading_goals.py:186:16 - error: Operator ">=" not supported for types "datetime" and "datetime | None"
+   .../projects/openlibrary/openlibrary/tests/core/test_yearly_reading_goals.py:186:16 - error: Operator ">=" not supported for types "datetime[Any]" and "datetime[Any] | None"
-     Operator ">=" not supported for types "datetime" and "None" (reportOperatorIssue)
+     Operator ">=" not supported for types "datetime[Any]" and "None" (reportOperatorIssue)
- 2213 errors, 34 warnings, 0 informations
+ 2216 errors, 34 warnings, 0 informations

altair (https://github.com/vega/altair)
+ .../projects/altair/altair/datasets/_cache.py
+   .../projects/altair/altair/datasets/_cache.py:232:30 - error: Argument of type "IOBase" cannot be assigned to parameter "fp" of type "SupportsRead[str | bytes]" in function "load"
+     "IOBase" is incompatible with protocol "SupportsRead[str | bytes]"
+       "read" is an incompatible type
+         Type "() -> Any" is not assignable to type "(length: int = ..., /) -> _T_co@SupportsRead"
+           Function accepts too few positional parameters; expected 1 but received 0 (reportArgumentType)
- 76 errors, 124 warnings, 0 informations
+ 77 errors, 124 warnings, 0 informations

pybind11 (https://github.com/pybind/pybind11)
-   .../projects/pybind11/tests/test_builtin_casters.py:739:48 - error: Argument of type "Convertible" cannot be assigned to parameter "real" of type "str | SupportsComplex | SupportsFloat | SupportsIndex | complex" in function "__new__"
+   .../projects/pybind11/tests/test_builtin_casters.py:739:48 - error: Argument of type "Convertible" cannot be assigned to parameter "real" of type "str | SupportsComplex | SupportsFloat | SupportsIndex | complex | float | int" in function "__new__"
-     Type "Convertible" is not assignable to type "str | SupportsComplex | SupportsFloat | SupportsIndex | complex"
+     Type "Convertible" is not assignable to type "str | SupportsComplex | SupportsFloat | SupportsIndex | complex | float | int"
-   .../projects/pybind11/tests/test_builtin_casters.py:739:48 - error: Argument of type "Convertible" cannot be assigned to parameter "real" of type "str | SupportsComplex | SupportsFloat | SupportsIndex | complex" in function "__new__"
+   .../projects/pybind11/tests/test_builtin_casters.py:739:48 - error: Argument of type "Convertible" cannot be assigned to parameter "real" of type "str | SupportsComplex | SupportsFloat | SupportsIndex | complex | float | int" in function "__new__"
-     Type "Convertible" is not assignable to type "str | SupportsComplex | SupportsFloat | SupportsIndex | complex"
+     Type "Convertible" is not assignable to type "str | SupportsComplex | SupportsFloat | SupportsIndex | complex | float | int"

prefect (https://github.com/PrefectHQ/prefect)
-   .../projects/prefect/src/integrations/prefect-aws/prefect_aws/observers/ecs.py:31:6 - warning: Import "cachetools" could not be resolved from source (reportMissingModuleSource)
+   .../projects/prefect/src/integrations/prefect-aws/prefect_aws/observers/ecs.py:31:6 - error: Import "cachetools" could not be resolved (reportMissingImports)
-   .../projects/prefect/src/integrations/prefect-aws/tests/observers/test_ecs_observer.py:13:6 - warning: Import "cachetools" could not be resolved from source (reportMissingModuleSource)
+   .../projects/prefect/src/integrations/prefect-aws/tests/observers/test_ecs_observer.py:13:6 - error: Import "cachetools" could not be resolved (reportMissingImports)
-   .../projects/prefect/src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py:24:6 - warning: Import "cachetools" could not be resolved from source (reportMissingModuleSource)
+   .../projects/prefect/src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py:24:6 - error: Import "cachetools" could not be resolved (reportMissingImports)
-   .../projects/prefect/src/integrations/prefect-github/prefect_github/repository.py:776:17 - error: Argument of type "datetime | None" cannot be assigned to parameter "oid" of type "Dict[Unknown, Unknown]" in function "strip_kwargs"
+   .../projects/prefect/src/integrations/prefect-github/prefect_github/repository.py:776:17 - error: Argument of type "datetime[Any] | None" cannot be assigned to parameter "oid" of type "Dict[Unknown, Unknown]" in function "strip_kwargs"
-     Type "datetime | None" is not assignable to type "Dict[Unknown, Unknown]"
+     Type "datetime[Any] | None" is not assignable to type "Dict[Unknown, Unknown]"
-       "datetime" is not assignable to "Dict[Unknown, Unknown]" (reportArgumentType)
+       "datetime[Any]" is not assignable to "Dict[Unknown, Unknown]" (reportArgumentType)
-   .../projects/prefect/src/integrations/prefect-github/prefect_github/user.py:1833:19 - error: Argument of type "datetime | None" cannot be assigned to parameter "since" of type "Dict[Unknown, Unknown]" in function "strip_kwargs"
+   .../projects/prefect/src/integrations/prefect-github/prefect_github/user.py:1833:19 - error: Argument of type "datetime[Any] | None" cannot be assigned to parameter "since" of type "Dict[Unknown, Unknown]" in function "strip_kwargs"
-     Type "datetime | None" is not assignable to type "Dict[Unknown, Unknown]"
+     Type "datetime[Any] | None" is not assignable to type "Dict[Unknown, Unknown]"
-       "datetime" is not assignable to "Dict[Unknown, Unknown]" (reportArgumentType)
+       "datetime[Any]" is not assignable to "Dict[Unknown, Unknown]" (reportArgumentType)
-   .../projects/prefect/src/integrations/prefect-github/prefect_github/user.py:2252:19 - error: Argument of type "datetime | None" cannot be assigned to parameter "from_" of type "Dict[Unknown, Unknown]" in function "strip_kwargs"
+   .../projects/prefect/src/integrations/prefect-github/prefect_github/user.py:2252:19 - error: Argument of type "datetime[Any] | None" cannot be assigned to parameter "from_" of type "Dict[Unknown, Unknown]" in function "strip_kwargs"
-     Type "datetime | None" is not assignable to type "Dict[Unknown, Unknown]"
+     Type "datetime[Any] | None" is not assignable to type "Dict[Unknown, Unknown]"
-       "datetime" is not assignable to "Dict[Unknown, Unknown]" (reportArgumentType)
+       "datetime[Any]" is not assignable to "Dict[Unknown, Unknown]" (reportArgumentType)
-   .../projects/prefect/src/integrations/prefect-github/prefect_github/user.py:2253:16 - error: Argument of type "datetime | None" cannot be assigned to parameter "to" of type "Dict[Unknown, Unknown]" in function "strip_kwargs"
+   .../projects/prefect/src/integrations/prefect-github/prefect_github/user.py:2253:16 - error: Argument of type "datetime[Any] | None" cannot be assigned to parameter "to" of type "Dict[Unknown, Unknown]" in function "strip_kwargs"
-     Type "datetime | None" is not assignable to type "Dict[Unknown, Unknown]"
+     Type "datetime[Any] | None" is not assignable to type "Dict[Unknown, Unknown]"
-       "datetime" is not assignable to "Dict[Unknown, Unknown]" (reportArgumentType)
+       "datetime[Any]" is not assignable to "Dict[Unknown, Unknown]" (reportArgumentType)
-   .../projects/prefect/src/integrations/prefect-github/prefect_github/viewer.py:1635:19 - error: Argument of type "datetime | None" cannot be assigned to parameter "since" of type "Dict[Unknown, Unknown]" in function "strip_kwargs"
+   .../projects/prefect/src/integrations/prefect-github/prefect_github/viewer.py:1635:19 - error: Argument of type "datetime[Any] | None" cannot be assigned to parameter "since" of type "Dict[Unknown, Unknown]" in function "strip_kwargs"
-     Type "datetime | None" is not assignable to type "Dict[Unknown, Unknown]"
+     Type "datetime[Any] | None" is not assignable to type "Dict[Unknown, Unknown]"
-       "datetime" is not assignable to "Dict[Unknown, Unknown]" (reportArgumentType)
+       "datetime[Any]" is not assignable to "Dict[Unknown, Unknown]" (reportArgumentType)
-   .../projects/prefect/src/integrations/prefect-github/prefect_github/viewer.py:2012:19 - error: Argument of type "datetime | None" cannot be assigned to parameter "from_" of type "Dict[Unknown, Unknown]" in function "strip_kwargs"
+   .../projects/prefect/src/integrations/prefect-github/prefect_github/viewer.py:2012:19 - error: Argument of type "datetime[Any] | None" cannot be assigned to parameter "from_" of type "Dict[Unknown, Unknown]" in function "strip_kwargs"
-     Type "datetime | None" is not assignable to type "Dict[Unknown, Unknown]"
+     Type "datetime[Any] | None" is not assignable to type "Dict[Unknown, Unknown]"
-       "datetime" is not assignable to "Dict[Unknown, Unknown]" (reportArgumentType)
+       "datetime[Any]" is not assignable to "Dict[Unknown, Unknown]" (reportArgumentType)
-   .../projects/prefect/src/integrations/prefect-github/prefect_github/viewer.py:2013:16 - error: Argument of type "datetime | None" cannot be assigned to parameter "to" of type "Dict[Unknown, Unknown]" in function "strip_kwargs"
+   .../projects/prefect/src/integrations/prefect-github/prefect_github/viewer.py:2013:16 - error: Argument of type "datetime[Any] | None" cannot be assigned to parameter "to" of type "Dict[Unknown, Unknown]" in function "strip_kwargs"
-     Type "datetime | None" is not assignable to type "Dict[Unknown, Unknown]"
+     Type "datetime[Any] | None" is not assignable to type "Dict[Unknown, Unknown]"
-       "datetime" is not assignable to "Dict[Unknown, Unknown]" (reportArgumentType)
+       "datetime[Any]" is not assignable to "Dict[Unknown, Unknown]" (reportArgumentType)
-   .../projects/prefect/src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py:19:6 - warning: Import "cachetools" could not be resolved from source (reportMissingModuleSource)
+   .../projects/prefect/src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py:19:6 - error: Import "cachetools" could not be resolved (reportMissingImports)
-   .../projects/prefect/src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py:54:43 - error: Type "TTLCache[_KT2@__init__, _VT2@__init__, float]" is not assignable to declared type "TTLCache[str, Event, float]"
-     "TTLCache[_KT2@__init__, _VT2@__init__, float]" is not assignable to "TTLCache[str, Event, float]"
-       Type parameter "_KT@TTLCache" is invariant, but "_KT2@__init__" is not the same as "str"
-       Type parameter "_VT@TTLCache" is invariant, but "_VT2@__init__" is not the same as "Event" (reportAssignmentType)
-   .../projects/prefect/src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:186:26 - error: Argument of type "datetime" cannot be assigned to parameter "current_time" of type "DateTime" in function "_message_fields"
+   .../projects/prefect/src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:186:26 - error: Argument of type "datetime[Any]" cannot be assigned to parameter "current_time" of type "DateTime" in function "_message_fields"
-     "datetime" is not assignable to "DateTime" (reportArgumentType)
+     "datetime[Any]" is not assignable to "DateTime" (reportArgumentType)
-   .../projects/prefect/src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:224:73 - error: Argument of type "datetime" cannot be assigned to parameter "value" of type "DateTime" in function "_score_ms"
+   .../projects/prefect/src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:224:73 - error: Argument of type "datetime[Any]" cannot be assigned to parameter "value" of type "DateTime" in function "_score_ms"
-     "datetime" is not assignable to "DateTime" (reportArgumentType)
+     "datetime[Any]" is not assignable to "DateTime" (reportArgumentType)
-   .../projects/prefect/src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:271:34 - error: Argument of type "datetime" cannot be assigned to parameter "current_time" of type "DateTime" in function "_reserve_candidate"
+   .../projects/prefect/src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:271:34 - error: Argument of type "datetime[Any]" cannot be assigned to parameter "current_time" of type "DateTime" in function "_reserve_candidate"
-     "datetime" is not assignable to "DateTime" (reportArgumentType)
+     "datetime[Any]" is not assignable to "DateTime" (reportArgumentType)
-   .../projects/prefect/src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:272:38 - error: Argument of type "datetime" cannot be assigned to parameter "lease_expires_at" of type "DateTime" in function "_reserve_candidate"
+   .../projects/prefect/src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:272:38 - error: Argument of type "datetime[Any]" cannot be assigned to parameter "lease_expires_at" of type "DateTime" in function "_reserve_candidate"

... (truncated 860 lines) ...

scikit-learn (https://github.com/scikit-learn/scikit-learn)
-   .../projects/scikit-learn/sklearn/callback/_scoring_monitor.py:293:52 - error: Argument of type "list[Unknown]" cannot be assigned to parameter "timestamp" of type "datetime" in function "__init__"
+   .../projects/scikit-learn/sklearn/callback/_scoring_monitor.py:293:52 - error: Argument of type "list[Unknown]" cannot be assigned to parameter "timestamp" of type "datetime[Any]" in function "__init__"
-     "list[Unknown]" is not assignable to "datetime" (reportArgumentType)
+     "list[Unknown]" is not assignable to "datetime[Any]" (reportArgumentType)
+   .../projects/scikit-learn/sklearn/datasets/tests/test_openml.py:1547:22 - error: No overloads for "escape" match the provided arguments (reportCallIssue)
-   .../projects/scikit-learn/sklearn/datasets/tests/test_openml.py:1547:32 - error: Argument of type "str | None" cannot be assigned to parameter "pattern" of type "AnyStr@escape" in function "escape"
+   .../projects/scikit-learn/sklearn/datasets/tests/test_openml.py:1547:32 - error: Argument of type "str | None" cannot be assigned to parameter "pattern" of type "str | ReadableBuffer" in function "escape"
-     Type "str | None" is not assignable to constrained type variable "AnyStr" (reportArgumentType)
+     Type "str | None" is not assignable to type "str | ReadableBuffer"
+       Type "None" is not assignable to type "str | ReadableBuffer"
+         "None" is not assignable to "str"
+         "None" is incompatible with protocol "Buffer"
+           "__buffer__" is not present (reportArgumentType)
- 17848 errors, 469 warnings, 0 informations
+ 17849 errors, 469 warnings, 0 informations

core (https://github.com/home-assistant/core)
-   .../projects/core/homeassistant/auth/__init__.py:595:13 - error: Argument of type "HassJob[(_: datetime | None = None), None]" cannot be assigned to parameter "action" of type "HassJob[(datetime), Coroutine[Any, Any, None] | None] | ((datetime) -> (Coroutine[Any, Any, None] | None))" in function "async_track_point_in_utc_time"
+   .../projects/core/homeassistant/auth/__init__.py:595:13 - error: Argument of type "HassJob[(_: datetime[Any] | None = None), None]" cannot be assigned to parameter "action" of type "HassJob[(datetime[Any]), Coroutine[Any, Any, None] | None] | ((datetime[Any]) -> (Coroutine[Any, Any, None] | None))" in function "async_track_point_in_utc_time"
-     Type "HassJob[(_: datetime | None = None), None]" is not assignable to type "HassJob[(datetime), Coroutine[Any, Any, None] | None] | ((datetime) -> (Coroutine[Any, Any, None] | None))"
+     Type "HassJob[(_: datetime[Any] | None = None), None]" is not assignable to type "HassJob[(datetime[Any]), Coroutine[Any, Any, None] | None] | ((datetime[Any]) -> (Coroutine[Any, Any, None] | None))"
-       "HassJob[(_: datetime | None = None), None]" is not assignable to "HassJob[(datetime), Coroutine[Any, Any, None] | None]"
+       "HassJob[(_: datetime[Any] | None = None), None]" is not assignable to "HassJob[(datetime[Any]), Coroutine[Any, Any, None] | None]"
-         Type parameter "_P@HassJob" is invariant, but "(_: datetime | None = None)" is not the same as "(datetime)"
+         Type parameter "_P@HassJob" is invariant, but "(_: datetime[Any] | None = None)" is not the same as "(datetime[Any])"
-       Type "HassJob[(_: datetime | None = None), None]" is not assignable to type "(datetime) -> (Coroutine[Any, Any, None] | None)" (reportArgumentType)
+       Type "HassJob[(_: datetime[Any] | None = None), None]" is not assignable to type "(datetime[Any]) -> (Coroutine[Any, Any, None] | None)" (reportArgumentType)
-     "property" is not assignable to "cached_property[StateType | date | datetime | Decimal]" (reportIncompatibleVariableOverride)
+     "property" is not assignable to "cached_property[StateType | date | datetime[Any] | Decimal]" (reportIncompatibleVariableOverride)
-     "property" is not assignable to "cached_property[StateType | date | datetime | Decimal]" (reportIncompatibleVariableOverride)
+     "property" is not assignable to "cached_property[StateType | date | datetime[Any] | Decimal]" (reportIncompatibleVariableOverride)
-     "property" is not assignable to "cached_property[StateType | date | datetime | Decimal]" (reportIncompatibleVariableOverride)
+     "property" is not assignable to "cached_property[StateType | date | datetime[Any] | Decimal]" (reportIncompatibleVariableOverride)
-     "property" is not assignable to "cached_property[StateType | date | datetime | Decimal]" (reportIncompatibleVariableOverride)
+     "property" is not assignable to "cached_property[StateType | date | datetime[Any] | Decimal]" (reportIncompatibleVariableOverride)
-     "property" is not assignable to "cached_property[StateType | date | datetime | Decimal]" (reportIncompatibleVariableOverride)

... (truncated 749 lines) ...```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-auto:approved Automated review: no blocking findings (approval posted).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants