Repository navigation
Update typeshed to 80f7beabfbb7 - #11970
Bill Schnurr (bschnurr) wants to merge 7 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
/benchmark |
|
🔒 Automated review in progress — Rich Chiodo (@rchiodo) is auto-reviewing this PR. |
|
Result: Verification detailsVerification: 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
|
Rich Chiodo (rchiodo)
left a comment
There was a problem hiding this comment.
Approved via Review Center.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Result: Verification detailsVerification: 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
|
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 |
There was a problem hiding this comment.
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]
|
Result: Verification detailsVerification: 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
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
|
Result: Verification detailsVerification: 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
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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>
|
Reviewed commit: Result: 🔴 Verification detailsVerification: 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 'pyrx-automation' is not running. Test runs: none recorded. |
|
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) ...``` |
Upstream Typeshed update
Update bundled Typeshed from
7030b265d887eeacee07e47aa2cca412b07950c4to80f7beabfbb71a634cc3dbca8e418a5da790142cusingbuild/updateTypeshed.py.Upstream comparison. Includes merged python/typeshed#16745: nullable
re.escapediagnostics now identifyNone, while valid string/buffer, union,AnyStr, andAnyinference is preserved. Line-ending-only churn was removed.Failure classification and test update
One Category A expected Typeshed change: python/typeshed#11844 (
6e76a91ed) makesdatetimegeneric over its timezone, defaulting toAny. UpdateoverloadCall1.pyto expectdatetime[Any]instead ofdatetimefor its existing baredatetimereturn 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. There.escapecontrols 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
git diff --check: passed.datetimedisplay assertion. After correcting it, the entire affectedtypeEvaluator6.test.tssuite passed (176 tests); all suites are covered across these runs.re.escapeerrors identifyNone; string, bytes, bytearray, memoryview, mixed unions,AnyStr, andAnyinference controls passed.