Skip to content

[ty] Sync vendored typeshed stubs - #30443

Open
astral-automations-bot[bot] wants to merge 9 commits into
mainfrom
typeshedbot/sync-typeshed
Open

astral-automations-bot[bot] wants to merge 9 commits into
mainfrom
typeshedbot/sync-typeshed

Conversation

@astral-automations-bot

Copy link
Copy Markdown
Contributor

No description provided.

@astral-automations-bot
astral-automations-bot Bot requested review from a team as code owners November 15, 2026 00:39
@astral-automations-bot astral-automations-bot Bot added the ty The ty type checker label Nov 15, 2026
@astral-automations-bot

astral-automations-bot Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 98.60%. The percentage of expected errors that received a diagnostic held steady at 98.86%. The number of fully passing files held steady at 137/146.

Results for 2a2920b · Workflow run

@astral-automations-bot

astral-automations-bot Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

Memory usage report

Summary

Project Old New Diff Outcome
sphinx 173.69MB 174.45MB +0.44% (778.52kB) ⏫
prefect 449.77MB 450.40MB +0.14% (644.44kB) ⏫
trio 90.46MB 90.82MB +0.39% (365.41kB) ⏫
flake8 35.99MB 36.07MB +0.21% (76.49kB) ⏫

Significant changes

Click to expand detailed breakdown

sphinx

Name Old New Diff Outcome
parsed_module 37.31MB 37.52MB +0.57% (219.04kB) ⏫
semantic_index 32.72MB 32.81MB +0.28% (95.23kB) ⏫
CallableType 2.88MB 2.92MB +1.28% (37.75kB) ⏫
Definition 7.92MB 7.96MB +0.44% (35.55kB) ⏫
TypePair 2.83MB 2.85MB +0.71% (20.72kB) ⏫
FunctionType 1.81MB 1.83MB +0.99% (18.27kB) ⏫
GenericContext 918.76kB 936.64kB +1.95% (17.88kB) ⏫
for_constraint_pair_inner::interned_arguments 623.12kB 638.28kB +2.43% (15.16kB) ⏫
protocol_apply_self_with_receiver::interned_arguments 424.43kB 439.16kB +3.47% (14.73kB) ⏫
for_constraint_pair_inner 648.97kB 663.66kB +2.26% (14.69kB) ⏫
Specialization 1.15MB 1.16MB +1.19% (13.94kB) ⏫
infer_definition_types 11.72MB 11.74MB +0.12% (13.85kB) ⏫
infer_expression_types_impl 10.84MB 10.85MB +0.11% (12.18kB) ⏫
infer_deferred_types 2.46MB 2.47MB +0.45% (11.39kB) ⏫
BoundTypeVarInstance 876.91kB 887.65kB +1.23% (10.74kB) ⏫
... 107 more

prefect

Name Old New Diff Outcome
parsed_module 80.75MB 80.96MB +0.26% (218.75kB) ⏫
semantic_index 83.60MB 83.69MB +0.11% (94.89kB) ⏫
FunctionType 6.32MB 6.36MB +0.64% (41.29kB) ⏫
Definition 18.75MB 18.79MB +0.19% (35.55kB) ⏫
GenericContext 2.65MB 2.67MB +0.76% (20.73kB) ⏫
infer_deferred_types 5.53MB 5.55MB +0.36% (20.36kB) ⏫
CallableType 10.09MB 10.11MB +0.17% (17.82kB) ⏫
FunctionType<'db>::literal_signature_ 3.89MB 3.91MB +0.36% (14.16kB) ⏫
BoundTypeVarInstance 2.12MB 2.13MB +0.59% (12.80kB) ⏫
TypePair 6.01MB 6.02MB +0.19% (11.81kB) ⏫
function_known_decorators 1.99MB 2.00MB +0.56% (11.47kB) ⏫
Specialization 4.00MB 4.02MB +0.27% (11.06kB) ⏫
Type<'db>::apply_specialization_inner_::interned_arguments 3.10MB 3.11MB +0.34% (10.86kB) ⏫
infer_definition_types 36.63MB 36.64MB +0.03% (10.73kB) ⏫
for_constraint_pair_inner 1.92MB 1.91MB -0.43% (8.38kB) ⬇️
... 122 more

trio

Name Old New Diff Outcome
parsed_module 21.20MB 21.36MB +0.73% (158.58kB) ⏫
semantic_index 17.68MB 17.75MB +0.42% (76.00kB) ⏫
Definition 4.28MB 4.30MB +0.58% (25.31kB) ⏫
CallableType 1.76MB 1.77MB +0.51% (9.16kB) ⏫
GenericContext 624.90kB 631.02kB +0.98% (6.12kB) ⏫
Specialization 877.05kB 882.50kB +0.62% (5.45kB) ⏫
ScopeId 489.38kB 494.34kB +1.01% (4.96kB) ⏫
FunctionType 1.24MB 1.25MB +0.36% (4.61kB) ⏫
infer_deferred_types 1.40MB 1.40MB +0.29% (4.18kB) ⏫
GenericAlias<'db>::try_mro_ancestors_ 682.69kB 686.50kB +0.56% (3.81kB) ⏫
infer_definition_types 4.65MB 4.66MB +0.08% (3.67kB) ⏫
BoundTypeVarInstance 408.63kB 411.90kB +0.80% (3.27kB) ⏫
FunctionType<'db>::literal_signature_ 807.96kB 811.13kB +0.39% (3.17kB) ⏫
function_known_decorators 364.15kB 367.31kB +0.87% (3.16kB) ⏫
GenericAlias 378.56kB 381.52kB +0.78% (2.95kB) ⏫
... 89 more

flake8

Name Old New Diff Outcome
parsed_module 13.99MB 14.04MB +0.32% (45.66kB) ⏫
semantic_index 8.81MB 8.83MB +0.21% (18.87kB) ⏫
Definition 2.49MB 2.49MB +0.29% (7.27kB) ⏫
function_known_decorators 184.25kB 187.56kB +1.80% (3.31kB) ⏫
ScopeId 300.74kB 301.99kB +0.42% (1.25kB) ⏫
might_be_explicitly_abstract 49.84kB 50.39kB +1.11% (568.00B) ⏫
infer_definition_types 1.16MB 1.16MB -0.04% (504.00B) ⬇️
non_alias_assignment 30.66kB 30.46kB -0.66% (208.00B) ⬇️
OverloadLiteral 125.63kB 125.84kB +0.16% (208.00B) ⏫
legacy_type_alias_definition 36.52kB 36.31kB -0.56% (208.00B) ⬇️
non_alias_assignment::interned_arguments 35.00kB 34.84kB -0.45% (160.00B) ⬇️
FunctionType 304.39kB 304.55kB +0.05% (160.00B) ⏫
OrderedUnionInput 25.10kB 25.22kB +0.47% (120.00B) ⏫
UnionType 75.02kB 75.12kB +0.15% (112.00B) ⏫
infer_deferred_types 314.11kB 314.20kB +0.03% (88.00B) ⏫
... 6 more

Results for 2a2920b · Workflow run

@astral-automations-bot

astral-automations-bot Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

ecosystem-analyzer results

Lint rule Added Removed Changed
invalid-argument-type 43 7 273
unsound-return 95 103 6
unsound-assignment 27 69 0
invalid-assignment 7 0 73
deprecated 0 0 75
no-matching-overload 33 0 0
incompatible-method-override 31 0 0
unsupported-operator 0 0 27
truthiness-test-of-none-union 3 0 18
invalid-explicit-return 2 1 14
missing-union-attribute 1 0 13
invalid-parameter-default 0 0 12
missing-attribute 2 1 6
redundant-condition-strict 4 1 0
type-assertion-failure 5 0 0
too-many-positional-arguments 4 0 0
incompatible-mutable-override 0 0 3
invalid-yield 0 0 3
unsound-yield 0 3 0
disjoint-cast 0 0 2
missing-override-decorator 2 0 0
incompatible-attribute-override 0 0 1
lost-keyword-for-regular-parameter 0 1 0
unused-ignore-comment 0 1 0
Total 259 187 526

Flaky changes detected. This PR summary excludes flaky changes; see the HTML report for details.

Showing a random sample of 215 of 972 changes. See the HTML report for the full diff.

Raw diff sample (215 of 972 changes)
CPython (peg_generator) (https://github.com/python/cpython)
+ Tools/peg_generator/pegen/first_sets.py:53:30 warning[unsound-assignment] Unsound assignment: `Unknown` is not a subtype of `set[str]`
+ Tools/peg_generator/pegen/first_sets.py:54:23 warning[unsound-assignment] Unsound assignment: `Unknown` is not a subtype of `set[str]`

DateType (https://github.com/glyph/DateType)
- src/datetype/__init__.py:535:32 warning[deprecated] The function `utcfromtimestamp` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.timezone.utc)
+ src/datetype/__init__.py:535:32 warning[deprecated] The function `utcfromtimestamp` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)

Expression (https://github.com/cognitedata/Expression)
- tests/test_tagged_union.py:180:30 error[invalid-argument-type] Argument to function `lt` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `Circle`
+ tests/test_tagged_union.py:180:30 error[invalid-argument-type] Argument to function `lt` is incorrect: Expected `SupportsDunderLE[Any] | SupportsDunderGE[Any] | SupportsDunderGT[Any] | SupportsDunderLT[Any]`, found `Circle`
- tests/test_tagged_union.py:182:17 error[invalid-argument-type] Argument to function `lt` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `Circle`
+ tests/test_tagged_union.py:182:17 error[invalid-argument-type] Argument to function `lt` is incorrect: Expected `SupportsDunderLE[Any] | SupportsDunderGE[Any] | SupportsDunderGT[Any] | SupportsDunderLT[Any]`, found `Circle`

PyGithub (https://github.com/PyGithub/PyGithub)
- github/CopilotSeat.py:99:16 warning[unsound-return] Unsound return statement: `datetime | Any` is not a subtype of `datetime`
- github/CopilotSeat.py:107:16 warning[unsound-return] Unsound return statement: `datetime | Any` is not a subtype of `datetime`

aiohttp (https://github.com/aio-libs/aiohttp)
+ aiohttp/payload.py:509:13 error[too-many-positional-arguments] Too many positional arguments to bound method `_IOBase.read`: expected 1, got 2

alerta (https://github.com/alerta/alerta)
- alerta/database/backends/mongodb/base.py:190:56 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc)
+ alerta/database/backends/mongodb/base.py:190:56 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
- alerta/database/backends/mongodb/base.py:1152:51 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc)
+ alerta/database/backends/mongodb/base.py:1152:51 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
- alerta/database/backends/mongodb/base.py:1576:100 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc)
+ alerta/database/backends/mongodb/base.py:1576:100 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
- alerta/database/backends/mongodb/utils.py:346:70 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc)
+ alerta/database/backends/mongodb/utils.py:346:70 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
- alerta/database/backends/postgres/utils.py:174:13 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["to_date"]` and value of type `Unknown | (datetime & ~AlwaysFalsy)` on object of type `dict[str, bool]`
+ alerta/database/backends/postgres/utils.py:174:13 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["to_date"]` and value of type `Unknown | datetime[tzinfo]` on object of type `dict[str, bool]`
- alerta/models/alert.py:339:24 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc)
+ alerta/models/alert.py:339:24 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
- alerta/models/alert.py:434:24 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc)
+ alerta/models/alert.py:434:24 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
- alerta/models/alert.py:602:34 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc)
+ alerta/models/alert.py:602:34 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
- alerta/models/alert.py:645:24 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc)
+ alerta/models/alert.py:645:24 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
- alerta/models/blackout.py:60:91 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc)
+ alerta/models/blackout.py:60:91 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
- alerta/models/blackout.py:84:24 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc)
+ alerta/models/blackout.py:84:24 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
- alerta/models/heartbeat.py:88:13 error[invalid-argument-type] Argument to `Heartbeat.__init__` is incorrect: Expected `datetime`, found `datetime | None`
+ alerta/models/heartbeat.py:88:13 error[invalid-argument-type] Argument to `Heartbeat.__init__` is incorrect: Expected `datetime[Any]`, found `datetime[Any] | None`
- alerta/models/key.py:54:13 error[invalid-argument-type] Argument to `ApiKey.__init__` is incorrect: Expected `datetime`, found `datetime | None`
+ alerta/models/key.py:54:13 error[invalid-argument-type] Argument to `ApiKey.__init__` is incorrect: Expected `datetime[Any]`, found `datetime[Any] | None`
- alerta/models/note.py:25:91 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc)
+ alerta/models/note.py:25:91 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
- alerta/utils/audit.py:94:36 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc)
+ alerta/utils/audit.py:94:36 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
- alerta/views/alerts.py:315:27 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc)
+ alerta/views/alerts.py:315:27 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
- tests/test_blackouts.py:688:42 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc)
+ tests/test_blackouts.py:688:42 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)

apprise (https://github.com/caronc/apprise)
- tests/test_persistent_store.py:242:39 error[invalid-argument-type] Argument to bound method `PersistentStore.set` is incorrect: Expected `float | datetime | None`, found `Literal["invalid"]`
+ tests/test_persistent_store.py:242:39 error[invalid-argument-type] Argument to bound method `PersistentStore.set` is incorrect: Expected `float | datetime[Any] | None`, found `Literal["invalid"]`

bandersnatch (https://github.com/pypa/bandersnatch)
- src/bandersnatch/utils.py:54:24 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc)
+ src/bandersnatch/utils.py:54:24 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)

bokeh (https://github.com/bokeh/bokeh)
+ src/bokeh/core/property/datetime.py:95:12 warning[redundant-condition-strict] Condition `isinstance(value, datetime.date)` is always true

colour (https://github.com/colour-science/colour)
+ colour/continuous/multi_signals.py:1497:30 error[no-matching-overload] No overload of function `truediv` matches arguments
+ colour/continuous/multi_signals.py:1531:30 error[no-matching-overload] No overload of function `itruediv` matches arguments
+ colour/continuous/multi_signals.py:1535:16 error[no-matching-overload] No overload of function `iadd` matches arguments
+ colour/continuous/multi_signals.py:1535:16 error[no-matching-overload] No overload of function `ipow` matches arguments
+ colour/continuous/multi_signals.py:1535:16 error[no-matching-overload] No overload of function `isub` matches arguments
+ colour/continuous/multi_signals.py:1535:16 error[no-matching-overload] No overload of function `itruediv` matches arguments
+ colour/continuous/signal.py:1203:30 error[no-matching-overload] No overload of function `itruediv` matches arguments
+ colour/io/luts/lut.py:638:26 error[no-matching-overload] No overload of function `truediv` matches arguments
+ colour/io/luts/lut.py:642:16 error[no-matching-overload] No overload of function `itruediv` matches arguments
+ colour/io/luts/lut.py:642:16 error[invalid-explicit-return] Return type does not match returned value: expected `Self@arithmetical_operation`, found `AbstractLUT | Unknown`

core (https://github.com/home-assistant/core)
- homeassistant/components/axle_energy/binary_sensor.py:46:16 warning[unsound-return] Unsound return statement: `(Unknown & ~AlwaysTruthy) | bool` is not a subtype of `bool`
+ homeassistant/components/axle_energy/binary_sensor.py:46:16 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `bool`
+ homeassistant/components/bring/sensor.py:109:13 warning[unsound-assignment] Unsound assignment: `set[Unknown]` is not a subtype of `set[str]`
- homeassistant/components/cambridge_audio/media_player.py:188:16 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `datetime`
- homeassistant/components/dexcom/sensor.py:114:20 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `datetime | None`
- homeassistant/components/esphome/sensor.py:119:16 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `datetime | float | None`
- homeassistant/components/flux/switch.py:315:60 error[missing-union-attribute] Attribute `timestamp` is not defined on `None` in union `Unknown | datetime | None`
+ homeassistant/components/flux/switch.py:315:60 error[missing-union-attribute] Attribute `timestamp` is not defined on `None` in union `Unknown | datetime[Any] | None`
- homeassistant/components/forecast_solar/services.py:113:32 warning[unsound-assignment] Unsound assignment: `Unknown | None` is not a subtype of `datetime | None`
- homeassistant/components/geonetnz_volcano/__init__.py:193:16 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `datetime | None`
- homeassistant/components/geosphere_austria_warnings/warnings.py:66:12 warning[unsound-return] Unsound return statement: `tuple[int, Unknown, Unknown, Unknown, Unknown, Unknown, str]` is not a subtype of `tuple[int, datetime, datetime, int, int, int, str]`
+ homeassistant/components/google_assistant/helpers.py:149:13 warning[unsound-return] Unsound return statement: `Literal[False] | Unknown` is not a subtype of `bool`
- homeassistant/components/habitica/calendar.py:100:20 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `list[datetime]`
- homeassistant/components/input_datetime/entity.py:260:20 error[missing-union-attribute] Attribute `date` is not defined on `None` in union `None | datetime`
+ homeassistant/components/input_datetime/entity.py:260:20 error[missing-union-attribute] Attribute `date` is not defined on `None` in union `None | datetime[tzinfo] | datetime[Any]`
+ homeassistant/components/israel_rail/coordinator.py:54:12 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `bool`
+ homeassistant/components/manual/alarm_control_panel.py:307:16 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `bool`
- homeassistant/components/min_max/sensor.py:275:39 warning[unsound-assignment] Unsound assignment: `Any` is not a subtype of `StateType | datetime`
- homeassistant/components/neopool/sensor.py:415:58 warning[unsound-assignment] Unsound assignment: `Any` is not a subtype of `float | str | datetime | None`
- homeassistant/components/nest/camera.py:283:20 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `datetime | None`
- homeassistant/components/nest/sensor.py:143:16 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `datetime | None`
- homeassistant/components/nissan_leaf/__init__.py:241:16 warning[unsound-return] Unsound return statement: `datetime | Any` is not a subtype of `datetime`
- homeassistant/components/nmap_tracker/__init__.py:328:17 error[invalid-argument-type] Argument is incorrect: Expected `datetime | None`, found `Literal[1]`
+ homeassistant/components/nmap_tracker/__init__.py:328:17 error[invalid-argument-type] Argument is incorrect: Expected `datetime[Any] | None`, found `Literal[1]`
- homeassistant/components/nordpool/sensor.py:95:21 warning[unsound-assignment] Unsound assignment: `Unknown` is not a subtype of `datetime`
- homeassistant/components/octoprint/sensor.py:219:16 warning[unsound-return] Unsound return statement: `Any` is not a subtype of `datetime | None`
- homeassistant/components/recorder/db_schema.py:425:45 warning[unsound-assignment] Unsound assignment: `MappedColumn[Any]` is not a subtype of `Mapped[datetime | None]`
- homeassistant/components/recorder/db_schema.py:631:40 warning[unsound-assignment] Unsound assignment: `MappedColumn[Any]` is not a subtype of `Mapped[datetime | None]`
- homeassistant/components/recorder/db_schema.py:844:33 warning[unsound-assignment] Unsound assignment: `MappedColumn[Any]` is not a subtype of `Mapped[datetime]`
- homeassistant/components/recorder/migration.py:1452:20 warning[truthiness-test-of-none-union] Boolean test on `Row[datetime | None, datetime | None, float | None, float | None] | None` does not distinguish `None` from other falsy values: Both `None` and non-`None` values can be falsy
+ homeassistant/components/recorder/migration.py:1452:20 warning[truthiness-test-of-none-union] Boolean test on `Row[datetime[Any] | None, datetime[Any] | None, float | None, float | None] | None` does not distinguish `None` from other falsy values: Both `None` and non-`None` values can be falsy
+ homeassistant/components/recorder/models/state.py:72:16 error[no-matching-overload] No overload matches arguments
- homeassistant/components/roborock/image.py:114:5 error[incompatible-mutable-override] Invalid override of attribute `image_last_updated`: Override does not accept writes of type `datetime | None`
+ homeassistant/components/roborock/image.py:114:5 error[incompatible-mutable-override] Invalid override of attribute `image_last_updated`: Override does not accept writes of type `datetime[Any] | None`
- homeassistant/components/russound_rio/media_player.py:197:16 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `datetime`
+ homeassistant/components/sensor/recorder.py:195:12 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `float`
- homeassistant/components/srp_energy/coordinator.py:390:29 error[unsupported-operator] Operator `>=` is not supported between objects of type `datetime` and `datetime | None`
+ homeassistant/components/srp_energy/coordinator.py:390:29 error[unsupported-operator] Operator `>=` is not supported between objects of type `datetime[Any]` and `datetime[Any] | None`
- homeassistant/components/sun/condition.py:439:31 warning[unsound-assignment] Unsound assignment: `Any` is not a subtype of `datetime`
+ homeassistant/components/sun/condition.py:132:16 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `bool`
- homeassistant/components/todoist/calendar.py:484:16 error[missing-union-attribute] Attribute `date` is not defined on `None` in union `datetime | None`
+ homeassistant/components/todoist/calendar.py:484:16 error[missing-union-attribute] Attribute `date` is not defined on `None` in union `datetime[Any] | None`
- homeassistant/components/todoist/calendar.py:484:45 error[missing-union-attribute] Attribute `date` is not defined on `None` in union `datetime | None`
+ homeassistant/components/todoist/calendar.py:484:45 error[missing-union-attribute] Attribute `date` is not defined on `None` in union `datetime[Any] | None`
- homeassistant/components/todoist/calendar.py:488:45 error[missing-union-attribute] Attribute `date` is not defined on `None` in union `datetime | None`
+ homeassistant/components/todoist/calendar.py:488:45 error[missing-union-attribute] Attribute `date` is not defined on `None` in union `datetime[Any] | None`
- homeassistant/components/unifiprotect/sensor.py:100:12 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `datetime | None`
- homeassistant/core.py:2554:17 error[invalid-argument-type] Argument to bound method `EventBus.async_fire_internal` is incorrect: Expected `EventType[EventStateReportedData | dict[str, str | datetime | State | None]] | str`, found `EventType[EventStateReportedData]`
+ homeassistant/core.py:2554:17 error[invalid-argument-type] Argument to bound method `EventBus.async_fire_internal` is incorrect: Expected `EventType[EventStateReportedData | dict[str, str | datetime[tzinfo] | datetime[Any] | State | None]] | str`, found `EventType[EventStateReportedData]`
+ homeassistant/helpers/sun.py:161:12 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `bool`

dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ddtrace/internal/flare/_subscribers.py:114:16 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `bool`

discord.py (https://github.com/Rapptz/discord.py)
+ discord/interactions.py:444:16 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `bool`

dragonchain (https://github.com/dragonchain/dragonchain)
- dragonchain/lib/dto/smart_contract_model.py:300:121 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc)
+ dragonchain/lib/dto/smart_contract_model.py:300:121 warning[deprecated] The function `utcnow` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)

freqtrade (https://github.com/freqtrade/freqtrade)
- freqtrade/exchange/binance.py:485:16 warning[unsound-return] Unsound return statement: `(Any & ~AlwaysTruthy) | datetime` is not a subtype of `datetime | None`
- freqtrade/optimize/backtesting.py:1589:41 warning[unsound-assignment] Unsound assignment: `Unknown` is not a subtype of `datetime`
- freqtrade/persistence/trade_model.py:112:36 warning[unsound-assignment] Unsound assignment: `MappedColumn[Any]` is not a subtype of `Mapped[datetime]`

hydpy (https://github.com/hydpy-dev/hydpy)
- hydpy/core/pubtools.py:164:45 error[invalid-argument-type] Argument to `Timegrids.__init__` is incorrect: Expected `Timegrid`, found `Timegrids | Timegrid | tuple[datetime | str | Date, datetime | str | Date, timedelta | str | Period]`
+ hydpy/core/pubtools.py:164:45 error[invalid-argument-type] Argument to `Timegrids.__init__` is incorrect: Expected `Timegrid`, found `Timegrids | Timegrid | tuple[datetime[Any] | str | Date, datetime[Any] | str | Date, timedelta | str | Period]`
+ hydpy/core/timetools.py:1004:16 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `bool`
+ hydpy/core/timetools.py:1007:16 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `bool`
+ hydpy/tests/plugin/check_operator_hooks.py:155:5 error[type-assertion-failure] Type `float` does not match asserted type `Any`

ibis (https://github.com/ibis-project/ibis)
+ ibis/expr/api.py:746:12 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `BooleanValue | bool`

itsdangerous (https://github.com/pallets/itsdangerous)
- src/itsdangerous/timed.py:158:16 warning[unsound-return] Unsound return statement: `bytes | Any` is not a subtype of `tuple[bytes, datetime] | bytes`

jax (https://github.com/google/jax)
+ jax/_src/interpreters/partial_eval.py:962:22 error[invalid-argument-type] Argument to function `safe_map` is incorrect: Expected `(_SupportsOr[_SupportsROr[Never, Unknown] | bool, Unknown] | bool, _SupportsROr[_SupportsOr[_SupportsROr[_SupportsOr[_SupportsROr[Never, Unknown] | bool, Unknown] | bool, Unknown] | bool, Unknown] | bool, Unknown] | bool, /) -> Unknown`, found `Overload[[_T_contra, _T_co](a: _SupportsOr[_T_contra, _T_co], b: _T_contra, /) -> _T_co, [_T_contra, _T_co](a: _T_contra, b: _SupportsROr[_T_contra, _T_co], /) -> _T_co]`
- jax/_src/interpreters/partial_eval.py:993:10 warning[unsound-return] Unsound return statement: `tuple[Unknown, Unknown, list[Unknown], list[Unknown], int, int]` is not a subtype of `tuple[Jaxpr, Jaxpr, list[bool], list[bool], int, int]`
+ jax/_src/interpreters/partial_eval.py:993:10 warning[unsound-return] Unsound return statement: `tuple[Unknown, Unknown, Unknown, Unknown, int, int]` is not a subtype of `tuple[Jaxpr, Jaxpr, list[bool], list[bool], int, int]`
- jax/_src/interpreters/partial_eval.py:1380:10 warning[unsound-return] Unsound return statement: `tuple[Unknown, list[Unknown]]` is not a subtype of `tuple[Jaxpr | None, list[bool]]`
+ jax/_src/interpreters/partial_eval.py:1380:10 warning[unsound-return] Unsound return statement: `tuple[Unknown, Unknown]` is not a subtype of `tuple[Jaxpr | None, list[bool]]`

materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/buildkite_insights/util/data_io.py:66:12 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `bool`

mitmproxy (https://github.com/mitmproxy/mitmproxy)
+ mitmproxy/certs.py:229:16 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `bool`

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- gridfs/asynchronous/grid_file.py:1228:38 warning[unsound-assignment] Unsound assignment: `Any` is not a subtype of `datetime`
- gridfs/asynchronous/grid_file.py:1546:38 warning[unsound-assignment] Unsound assignment: `Any` is not a subtype of `datetime`
- gridfs/synchronous/grid_file.py:1528:38 warning[unsound-assignment] Unsound assignment: `Any` is not a subtype of `datetime`

mypy (https://github.com/python/mypy)
+ mypy/typeshed/stdlib/_weakrefset.pyi:30:9 error[incompatible-method-override] Invalid override of method `__isub__`: Definition is incompatible with `MutableSet.__isub__`
+ mypy/typeshed/stdlib/builtins.pyi:1353:9 error[incompatible-method-override] Invalid override of method `__rsub__`: Definition is incompatible with `AbstractSet.__rsub__`
+ mypy/typeshed/stdlib/builtins.pyi:1401:9 error[incompatible-method-override] Invalid override of method `__ror__`: Definition is incompatible with `AbstractSet.__ror__`

openlibrary (https://github.com/internetarchive/openlibrary)
- openlibrary/bookworm/tests/test_harvest.py:236:12 error[unsupported-operator] Operator `<=` is not supported between objects of type `datetime | None` and `datetime`
+ openlibrary/bookworm/tests/test_harvest.py:236:12 error[unsupported-operator] Operator `<=` is not supported between objects of type `datetime[Any] | None` and `datetime[tzinfo]`
+ openlibrary/coverstore/code.py:145:16 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `bool`
+ openlibrary/plugins/upstream/models.py:617:16 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `bool`
- openlibrary/tests/core/test_booknotes.py:166:16 error[unsupported-operator] Operator `>=` is not supported between two objects of type `datetime | None`
+ openlibrary/tests/core/test_booknotes.py:166:16 error[unsupported-operator] Operator `>=` is not supported between two objects of type `datetime[Any] | None`
+ openlibrary/tests/core/test_unmarshal.py:32:12 error[no-matching-overload] No overload of constructor `datetime.__new__` matches arguments

operator (https://github.com/canonical/operator)
+ ops/_private/harness.py:3862:32 error[invalid-argument-type] Argument to function `copyfileobj` is incorrect: Expected `SupportsRead[Any]`, found `IOBase`

optuna (https://github.com/optuna/optuna)
- optuna/storages/_rdb/models.py:190:61 error[invalid-assignment] Object of type `MappedColumn[Any] | Column[datetime | property]` is not assignable to `Mapped[datetime | None]`
+ optuna/storages/_rdb/models.py:190:61 error[invalid-assignment] Object of type `MappedColumn[Any] | Column[datetime[Any] | property]` is not assignable to `Mapped[datetime[Any] | None]`
- optuna/storages/_rdb/models.py:593:44 error[invalid-assignment] Object of type `MappedColumn[Any] | Column[datetime | property]` is not assignable to `Mapped[datetime]`
+ optuna/storages/_rdb/models.py:593:44 error[invalid-assignment] Object of type `MappedColumn[Any] | Column[datetime[Any] | property]` is not assignable to `Mapped[datetime[Any]]`

paasta (https://github.com/yelp/paasta)
- paasta_tools/cli/cmds/logs.py:308:5 error[invalid-parameter-default] Default value of type `None` is not assignable to annotated parameter type `datetime`
+ paasta_tools/cli/cmds/logs.py:308:5 error[invalid-parameter-default] Default value of type `None` is not assignable to annotated parameter type `datetime[Any]`
- paasta_tools/cli/cmds/logs.py:981:9 error[invalid-parameter-default] Default value of type `None` is not assignable to annotated parameter type `datetime`
+ paasta_tools/cli/cmds/logs.py:981:9 error[invalid-parameter-default] Default value of type `None` is not assignable to annotated parameter type `datetime[Any]`
- paasta_tools/kubernetes/bin/paasta_cleanup_stale_nodes.py:107:20 warning[unsound-return] Unsound return statement: `Unknown` is not a subtype of `datetime | None`
+ paasta_tools/kubernetes/bin/paasta_cleanup_stale_nodes.py:135:12 warning[unsound-return] Unsound return statement: `Literal[True] | Unknown` is not a subtype of `bool`

pandas (https://github.com/pandas-dev/pandas)
+ pandas/_libs/tslibs/timestamps.pyi:197:9 error[incompatible-method-override] Invalid override of method `__lt__`: Definition is incompatible with `datetime.__lt__`
+ pandas/_libs/tslibs/timestamps.pyi:198:9 error[incompatible-method-override] Invalid override of method `__ge__`: Definition is incompatible with `datetime.__ge__`
- pandas/core/arrays/datetimes.py:3234:21 error[invalid-assignment] Object of type `datetime` is not assignable to `Timestamp | None`
+ pandas/core/arrays/datetimes.py:3234:21 error[invalid-assignment] Object of type `datetime[Any]` is not assignable to `Timestamp | None`
- pandas/core/arrays/datetimes.py:3236:21 error[invalid-assignment] Object of type `datetime` is not assignable to `Timestamp | None`
+ pandas/core/arrays/datetimes.py:3236:21 error[invalid-assignment] Object of type `datetime[Any]` is not assignable to `Timestamp | None`
- pandas/core/indexes/base.py:4225:16 error[invalid-argument-type] Argument to function `lt` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]`
+ pandas/core/indexes/base.py:4225:16 error[invalid-argument-type] Argument to function `lt` is incorrect: Expected `SupportsDunderLE[Any] | SupportsDunderGE[Any] | SupportsDunderGT[Any] | SupportsDunderLT[Any]`, found `ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]`
- pandas/core/indexes/base.py:4225:32 error[invalid-argument-type] Argument to function `le` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]`
+ pandas/core/indexes/base.py:4225:32 error[invalid-argument-type] Argument to function `le` is incorrect: Expected `SupportsDunderLE[Any] | SupportsDunderGE[Any] | SupportsDunderGT[Any] | SupportsDunderLT[Any]`, found `ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]`
- pandas/core/indexes/base.py:4225:32 error[invalid-argument-type] Argument to function `lt` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]`
+ pandas/core/indexes/base.py:4225:32 error[invalid-argument-type] Argument to function `lt` is incorrect: Expected `SupportsDunderLE[Any] | SupportsDunderGE[Any] | SupportsDunderGT[Any] | SupportsDunderLT[Any]`, found `ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]`
- pandas/io/excel/_base.py:1447:16 error[invalid-explicit-return] Return type does not match returned value: expected `tuple[float | str | date, str | None]`, found `tuple[(Unknown & date & ~datetime) | (Unknown & datetime) | float | Decimal | str, None | str]`
+ pandas/io/excel/_base.py:1447:16 error[invalid-explicit-return] Return type does not match returned value: expected `tuple[float | str | date, str | None]`, found `tuple[(Unknown & date & ~Top[datetime[Unknown]]) | (Unknown & Top[datetime[Unknown]]) | float | Decimal | str, None | str]`
- pandas/io/formats/style.py:4410:16 error[invalid-argument-type] Argument to function `gt` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `NDFrame`
+ pandas/io/formats/style.py:4410:16 error[invalid-argument-type] Argument to function `gt` is incorrect: Expected `SupportsDunderLE[Any] | SupportsDunderGE[Any] | SupportsDunderGT[Any] | SupportsDunderLT[Any]`, found `NDFrame`
- pandas/io/formats/style.py:4410:22 error[invalid-argument-type] Argument to function `gt` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `(date & ~Top[Iterable[object]]) | (timedelta & ~Top[Iterable[object]]) | (datetime64[date | int | None] & ~Top[Iterable[object]]) | ... omitted 10 union elements`
+ pandas/io/formats/style.py:4410:22 error[invalid-argument-type] Argument to function `gt` is incorrect: Expected `SupportsDunderLE[Any] | SupportsDunderGE[Any] | SupportsDunderGT[Any] | SupportsDunderLT[Any]`, found `(date & ~Top[Iterable[object]]) | (timedelta & ~Top[Iterable[object]]) | (datetime64[date | int | None] & ~Top[Iterable[object]]) | ... omitted 10 union elements`
- pandas/plotting/_matplotlib/converter.py:204:12 warning[unsound-return] Unsound return statement: `Any` is not a subtype of `datetime`
- pandas/tests/indexes/datetimes/test_date_range.py:1019:17 error[invalid-argument-type] Argument to function `_generate_range` is incorrect: Expected `Timestamp | None`, found `datetime`
+ pandas/tests/indexes/datetimes/test_date_range.py:1019:17 error[invalid-argument-type] Argument to function `_generate_range` is incorrect: Expected `Timestamp | None`, found `datetime[None]`
- pandas/tests/io/test_stata.py:1009:9 error[invalid-assignment] Invalid subscript assignment with key of type `Literal[2]` and value of type `datetime` on object of type `list[NaTType]`
+ pandas/tests/io/test_stata.py:1009:9 error[invalid-assignment] Invalid subscript assignment with key of type `Literal[2]` and value of type `datetime[None]` on object of type `list[NaTType]`
- pandas/tests/io/test_stata.py:1016:26 error[invalid-assignment] Invalid subscript assignment with key of type `Literal[3]` and value of type `datetime` on object of type `list[NaTType]`
+ pandas/tests/io/test_stata.py:1016:26 error[invalid-assignment] Invalid subscript assignment with key of type `Literal[3]` and value of type `datetime[None]` on object of type `list[NaTType]`
- pandas/tests/scalar/timedelta/test_arithmetic.py:1066:13 error[unsupported-operator] Operator `//` is not supported between objects of type `datetime64[datetime]` and `Timedelta`
+ pandas/tests/scalar/timedelta/test_arithmetic.py:1066:13 error[unsupported-operator] Operator `//` is not supported between objects of type `datetime64[datetime[Any]]` and `Timedelta`

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
+ pandas-stubs/_libs/tslibs/timestamps.pyi:261:9 error[incompatible-method-override] Invalid override of method `__lt__`: Definition is incompatible with `datetime.__lt__`
+ pandas-stubs/_libs/tslibs/timestamps.pyi:304:9 error[incompatible-method-override] Invalid override of method `__sub__`: Definition is incompatible with `datetime.__sub__`

pandera (https://github.com/pandera-dev/pandera)
- pandera/backends/xarray/builtin_checks.py:404:54 error[invalid-argument-type] Argument to function `gt` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `T@in_range`
+ pandera/backends/xarray/builtin_checks.py:404:54 error[invalid-argument-type] Argument to function `gt` is incorrect: Expected `SupportsDunderLE[Any] | SupportsDunderGE[Any] | SupportsDunderGT[Any] | SupportsDunderLT[Any]`, found `T@in_range`

pip (https://github.com/pypa/pip)
- src/pip/_internal/cli/cmdoptions.py:492:9 error[invalid-assignment] Object of type `datetime` is not assignable to attribute `uploaded_prior_to` on type `Values | None`
+ src/pip/_internal/cli/cmdoptions.py:492:9 error[invalid-assignment] Object of type `datetime[tzinfo]` is not assignable to attribute `uploaded_prior_to` on type `Values | None`
- src/pip/_internal/cli/cmdoptions.py:502:9 error[invalid-assignment] Object of type `datetime` is not assignable to attribute `uploaded_prior_to` on type `Values | None`
+ src/pip/_internal/cli/cmdoptions.py:502:9 error[invalid-assignment] Object of type `datetime[Any] | datetime[tzinfo]` is not assignable to attribute `uploaded_prior_to` on type `Values | None`
+ src/pip/_vendor/urllib3/contrib/emscripten/response.py:163:49 error[too-many-positional-arguments] Too many positional arguments to bound method `_IOBase.read`: expected 1, got 2

prefect (https://github.com/PrefectHQ/prefect)
- src/integrations/prefect-aws/prefect_aws/observers/ecs.py:762:13 error[invalid-assignment] Object of type `datetime` is not assignable to attribute `occurred` of type `DateTime`
+ src/integrations/prefect-aws/prefect_aws/observers/ecs.py:762:13 error[invalid-assignment] Object of type `datetime[tzinfo] | datetime[None]` is not assignable to attribute `occurred` of type `DateTime`
- src/integrations/prefect-github/prefect_github/user.py:1833:13 error[invalid-argument-type] Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `datetime | None`
+ src/integrations/prefect-github/prefect_github/user.py:1833:13 error[invalid-argument-type] Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `datetime[Any] | None`
- src/integrations/prefect-github/prefect_github/viewer.py:1635:13 error[invalid-argument-type] Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `datetime | None`
+ src/integrations/prefect-github/prefect_github/viewer.py:1635:13 error[invalid-argument-type] Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `datetime[Any] | None`
- src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:368:32 error[invalid-argument-type] Argument to function `_score_ms` is incorrect: Expected `DateTime`, found `datetime`
+ src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:368:32 error[invalid-argument-type] Argument to function `_score_ms` is incorrect: Expected `DateTime`, found `datetime[Any]`
- src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:385:17 error[invalid-argument-type] Argument to bound method `WorkerCleanupQueue._expire_lease_candidate` is incorrect: Expected `DateTime`, found `datetime`
+ src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:385:17 error[invalid-argument-type] Argument to bound method `WorkerCleanupQueue._expire_lease_candidate` is incorrect: Expected `DateTime`, found `datetime[Any]`
- src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:626:32 error[invalid-argument-type] Argument to function `_score_ms` is incorrect: Expected `DateTime`, found `datetime`
+ src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:626:32 error[invalid-argument-type] Argument to function `_score_ms` is incorrect: Expected `DateTime`, found `datetime[Any]`
- src/prefect/_internal/states.py:277:13 error[invalid-argument-type] Argument to bound method `ResultStore.create_result_record` is incorrect: Expected `DateTime | None`, found `datetime | None`
+ src/prefect/_internal/states.py:277:13 error[invalid-argument-type] Argument to bound method `ResultStore.create_result_record` is incorrect: Expected `DateTime | None`, found `datetime[Any] | None`
- src/prefect/cli/deploy/_schedules.py:70:13 error[invalid-argument-type] Argument to `IntervalSchedule.__init__` is incorrect: Expected `str | None`, found `Any | timedelta | datetime`
+ src/prefect/cli/deploy/_schedules.py:70:13 error[invalid-argument-type] Argument to `IntervalSchedule.__init__` is incorrect: Expected `str | None`, found `Any | timedelta | datetime[Any]`
- src/prefect/cli/work_queue.py:742:20 error[unsupported-operator] Operator `<` is not supported between objects of type `DateTime | None` and `datetime`
+ src/prefect/cli/work_queue.py:742:20 error[unsupported-operator] Operator `<` is not supported between objects of type `DateTime | None` and `datetime[Any]`
- src/prefect/client/schemas/schedules.py:228:12 warning[unsound-return] Unsound return statement: `Any | list[Any]` is not a subtype of `list[datetime]`
- src/prefect/deployments/runner.py:1005:25 error[invalid-argument-type] Argument to function `construct_schedule` is incorrect: Expected `datetime | str | None`, found `Iterable[float | timedelta] | float | timedelta | ... omitted 3 union elements`
+ src/prefect/deployments/runner.py:1005:25 error[invalid-argument-type] Argument to function `construct_schedule` is incorrect: Expected `datetime[Any] | str | None`, found `Iterable[float | timedelta] | float | timedelta | ... omitted 3 union elements`
- src/prefect/events/clients.py:849:13 error[invalid-assignment] Object of type `datetime` is not assignable to attribute `_backfill_since` of type `DateTime | None`
+ src/prefect/events/clients.py:849:13 error[invalid-assignment] Object of type `datetime[Any]` is not assignable to attribute `_backfill_since` of type `DateTime | None`
- src/prefect/locking/filesystem.py:71:20 warning[unsound-return] Unsound return statement: `Any` is not a subtype of `_LockInfo | None`
- src/prefect/locking/filesystem.py:93:20 warning[unsound-return] Unsound return statement: `Any` is not a subtype of `_LockInfo | None`
- src/prefect/server/api/flow_runs.py:556:38 error[invalid-argument-type] Argument to function `Scheduled` is incorrect: Expected `DateTime | None`, found `datetime`
+ src/prefect/server/api/flow_runs.py:556:38 error[invalid-argument-type] Argument to function `Scheduled` is incorrect: Expected `DateTime | None`, found `datetime[Any]`
- src/prefect/server/api/ui/flows.py:43:20 error[invalid-explicit-return] Return type does not match returned value: expected `DateTime`, found `datetime`
+ src/prefect/server/api/ui/flows.py:43:20 error[invalid-explicit-return] Return type does not match returned value: expected `DateTime`, found `datetime[Any]`
- src/prefect/server/events/schemas/events.py:214:50 error[invalid-assignment] Object of type `dataclasses.Field[datetime]` is not assignable to `DateTime`
+ src/prefect/server/events/schemas/events.py:214:50 error[invalid-assignment] Object of type `dataclasses.Field[datetime[Any]]` is not assignable to `DateTime`
- src/prefect/server/events/triggers.py:325:17 error[invalid-argument-type] Argument is incorrect: Expected `DateTime`, found `datetime`
+ src/prefect/server/events/triggers.py:325:17 error[invalid-argument-type] Argument is incorrect: Expected `DateTime`, found `datetime[Any]`
- src/prefect/server/events/triggers.py:1476:26 error[invalid-argument-type] Argument to function `proactive_evaluation` is incorrect: Expected `DateTime`, found `datetime`
+ src/prefect/server/events/triggers.py:1476:26 error[invalid-argument-type] Argument to function `proactive_evaluation` is incorrect: Expected `DateTime`, found `datetime[Any]`
- src/prefect/server/models/artifacts.py:35:78 error[invalid-argument-type] Argument to function `artifact_collection_updated_event` is incorrect: Expected `DateTime`, found `datetime`
+ src/prefect/server/models/artifacts.py:35:78 error[invalid-argument-type] Argument to function `artifact_collection_updated_event` is incorrect: Expected `DateTime`, found `datetime[Any]`
- src/prefect/server/models/block_documents.py:36:68 error[invalid-argument-type] Argument to function `block_document_created_event` is incorrect: Expected `DateTime`, found `datetime`
+ src/prefect/server/models/block_documents.py:36:68 error[invalid-argument-type] Argument to function `block_document_created_event` is incorrect: Expected `DateTime`, found `datetime[Any]`
- src/prefect/server/models/block_types.py:38:60 error[invalid-argument-type] Argument to function `block_type_updated_event` is incorrect: Expected `DateTime`, found `datetime`
+ src/prefect/server/models/block_types.py:38:60 error[invalid-argument-type] Argument to function `block_type_updated_event` is incorrect: Expected `DateTime`, found `datetime[Any]`
- src/prefect/server/models/deployments.py:763:48 error[invalid-argument-type] Argument to function `deployment_deleted_event` is incorrect: Expected `DateTime`, found `datetime`
+ src/prefect/server/models/deployments.py:763:48 error[invalid-argument-type] Argument to function `deployment_deleted_event` is incorrect: Expected `DateTime`, found `datetime[Any]`
- src/prefect/server/models/deployments.py:1485:29 error[invalid-argument-type] Argument to function `deployment_status_event` is incorrect: Expected `DateTime`, found `datetime`
+ src/prefect/server/models/deployments.py:1485:29 error[invalid-argument-type] Argument to function `deployment_status_event` is incorrect: Expected `DateTime`, found `datetime[Any]`
- src/prefect/server/models/deployments.py:1589:17 error[invalid-argument-type] Argument to function `deployment_updated_event` is incorrect: Expected `DateTime`, found `datetime`
+ src/prefect/server/models/deployments.py:1589:17 error[invalid-argument-type] Argument to function `deployment_updated_event` is incorrect: Expected `DateTime`, found `datetime[Any]`
- src/prefect/server/models/flows.py:26:69 error[invalid-argument-type] Argument to function `flow_created_event` is incorrect: Expected `DateTime`, found `datetime`
+ src/prefect/server/models/flows.py:26:69 error[invalid-argument-type] Argument to function `flow_created_event` is incorrect: Expected `DateTime`, found `datetime[Any]`
- src/prefect/server/models/flows.py:32:69 error[invalid-argument-type] Argument to function `flow_updated_event` is incorrect: Expected `DateTime`, found `datetime`
+ src/prefect/server/models/flows.py:32:69 error[invalid-argument-type] Argument to function `flow_updated_event` is incorrect: Expected `DateTime`, found `datetime[Any]`
- src/prefect/server/models/work_queues.py:848:13 error[invalid-argument-type] Argument to function `work_queue_status_event` is incorrect: Expected `DateTime`, found `datetime`
+ src/prefect/server/models/work_queues.py:848:13 error[invalid-argument-type] Argument to function `work_queue_status_event` is incorrect: Expected `DateTime`, found `datetime[Any]`
- src/prefect/server/models/work_queues.py:868:17 error[invalid-argument-type] Argument to function `work_queue_updated_event` is incorrect: Expected `DateTime`, found `datetime`
+ src/prefect/server/models/work_queues.py:868:17 error[invalid-argument-type] Argument to function `work_queue_updated_event` is incorrect: Expected `DateTime`, found `datetime[Any]`
- src/prefect/server/models/workers.py:501:9 error[invalid-argument-type] Argument is incorrect: Expected `DateTime | None`, found `datetime | None`
+ src/prefect/server/models/workers.py:501:9 error[invalid-argument-type] Argument is incorrect: Expected `DateTime | None`, found `datetime[Any] | None`
- src/prefect/server/schemas/schedules.py:460:26 warning[unsound-assignment] Unsound assignment: `DateTime` is not a subtype of `datetime | None`
- src/prefect/server/utilities/database.py:497:12 warning[unsound-return] Unsound return statement: `Function[Any]` is not a subtype of `ColumnElement[datetime]`
- src/prefect/server/worker_communication/cleanup_queue/memory.py:116:17 error[invalid-argument-type] Argument to bound method `WorkerCleanupQueue._prune_completed_idempotency_locked` is incorrect: Expected `DateTime`, found `datetime`
+ src/prefect/server/worker_communication/cleanup_queue/memory.py:116:17 error[invalid-argument-type] Argument to bound method `WorkerCleanupQueue._prune_completed_idempotency_locked` is incorrect: Expected `DateTime`, found `datetime[Any]`
- src/prefect/server/worker_communication/cleanup_queue/memory.py:228:25 error[invalid-argument-type] Argument is incorrect: Expected `DateTime`, found `datetime`
+ src/prefect/server/worker_communication/cleanup_queue/memory.py:228:25 error[invalid-argument-type] Argument is incorrect: Expected `DateTime`, found `datetime[Any]`
- src/prefect/states.py:358:17 error[invalid-argument-type] Argument to bound method `ResultStore.create_result_record` is incorrect: Expected `DateTime | None`, found `datetime | None`
+ src/prefect/states.py:358:17 error[invalid-argument-type] Argument to bound method `ResultStore.create_result_record` is incorrect: Expected `DateTime | None`, found `datetime[Any] | None`
- src/prefect/states.py:852:9 error[invalid-assignment] Object of type `datetime` is not assignable to attribute `pause_timeout` of type `DateTime | None`
+ src/prefect/states.py:852:9 error[invalid-assignment] Object of type `datetime[Any]` is not assignable to attribute `pause_timeout` of type `DateTime | None`
- src/prefect/task_engine.py:381:13 error[invalid-assignment] Object of type `datetime` is not assignable to attribute `end_time` on type `TaskRun & ~AlwaysFalsy`
+ src/prefect/task_engine.py:381:13 error[invalid-assignment] Object of type `datetime[Any]` is not assignable to attribute `end_time` on type `TaskRun & ~AlwaysFalsy`
- src/prefect/task_engine.py:1271:17 error[invalid-assignment] Object of type `datetime` is not assignable to attribute `end_time` on type `TaskRun & ~AlwaysFalsy`
+ src/prefect/task_engine.py:1271:17 error[invalid-assignment] Object of type `datetime[Any]` is not assignable to attribute `end_time` on type `TaskRun & ~AlwaysFalsy`
- src/prefect/task_worker.py:418:9 error[invalid-assignment] Object of type `datetime` is not assignable to attribute `_started_at` of type `DateTime | None`
+ src/prefect/task_worker.py:418:9 error[invalid-assignment] Object of type `datetime[Any]` is not assignable to attribute `_started_at` of type `DateTime | None`
- src/prefect/types/_datetime.py:144:12 warning[unsound-return] Unsound return statement: `DateTime` is not a subtype of `datetime`
- src/prefect/types/_datetime.py:176:24 warning[unsound-return] Unsound return statement: `Any` is not a subtype of `datetime`

pydantic (https://github.com/pydantic/pydantic)
- pydantic/experimental/pipeline.py:507:23 error[invalid-assignment] Invalid assignment to key "ge" with declared type `datetime` on TypedDict `DatetimeSchema`: value of type `SupportsGe`
+ pydantic/experimental/pipeline.py:507:23 error[invalid-assignment] Invalid assignment to key "ge" with declared type `datetime[Any]` on TypedDict `DatetimeSchema`: value of type `SupportsGe`

pyochain (https://github.com/OutSquareCapital/pyochain)
+ pyochain/abc/_mutable_set.pyi:15:9 error[incompatible-method-override] Invalid override of method `__ior__`: Definition is incompatible with `MutableSet.__ior__`
+ pyochain/abc/_mutable_set.pyi:17:9 error[incompatible-method-override] Invalid override of method `__iand__`: Definition is incompatible with `MutableSet.__iand__`

pytest (https://github.com/pytest-dev/pytest)
- src/_pytest/approx.py:342:33 error[unsupported-operator] Operator `-` is not supported between objects of type `(Any & ~None) | datetime | timedelta` and `float`
+ src/_pytest/approx.py:342:33 error[unsupported-operator] Operator `-` is not supported between objects of type `(Any & ~None) | datetime[Any] | timedelta` and `float`

pywin32 (https://github.com/mhammond/pywin32)
+ win32/Lib/win32timezone.py:732:9 error[incompatible-method-override] Invalid override of method `utcoffset`: Definition is incompatible with `tzinfo.utcoffset`
- win32/test/test_win32file.py:197:60 error[invalid-argument-type] Argument to function `SetFileTime` is incorrect: Expected `TimeType | None`, found `datetime`
+ win32/test/test_win32file.py:197:60 error[invalid-argument-type] Argument to function `SetFileTime` is incorrect: Expected `TimeType | None`, found `datetime[tzinfo]`

scrapy (https://github.com/scrapy/scrapy)
- scrapy/extensions/remote_control.py:311:39 warning[unsound-assignment] Unsound assignment: `Any` is not a subtype of `datetime | None`

spark (https://github.com/apache/spark)
- python/pyspark/pandas/frame.py:6935:19 warning[disjoint-cast] Cast from `datetime` to disjoint type `int`
+ python/pyspark/pandas/frame.py:6935:19 warning[disjoint-cast] Cast from `datetime[Any]` to disjoint type `int`
- python/pyspark/sql/tests/arrow/test_arrow.py:189:21 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/arrow/test_arrow.py:189:21 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/arrow/test_arrow.py:1634:25 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/arrow/test_arrow.py:1634:25 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/arrow/test_arrow.py:1664:25 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/arrow/test_arrow.py:1664:25 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/test_functions.py:485:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/test_functions.py:485:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/test_functions.py:506:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/test_functions.py:506:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/test_functions.py:570:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/test_functions.py:570:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/test_functions.py:584:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/test_functions.py:584:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/test_functions.py:653:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/test_functions.py:653:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/test_functions.py:1272:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/test_functions.py:1272:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/test_functions.py:1285:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/test_functions.py:1285:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/test_functions.py:1303:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/test_functions.py:1303:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/test_functions.py:1342:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/test_functions.py:1342:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/test_functions.py:1433:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/test_functions.py:1433:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/test_functions.py:1441:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/test_functions.py:1441:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/test_functions.py:1460:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/test_functions.py:1460:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/test_functions.py:1481:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/test_functions.py:1481:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/test_functions.py:1522:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/test_functions.py:1522:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/test_functions.py:1536:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/test_functions.py:1536:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/test_functions.py:1540:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime`
+ python/pyspark/sql/tests/test_functions.py:1540:43 error[invalid-argument-type] Argument to constructor `Row.__new__` is incorrect: Expected `str`, found `datetime[None]`
- python/pyspark/sql/tests/test_serde.py:87:36 warning[deprecated] The function `utcfromtimestamp` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.timezone.utc)
+ python/pyspark/sql/tests/test_serde.py:87:36 warning[deprecated] The function `utcfromtimestamp` is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
- python/pyspark/streaming/dstream.py:408:32 error[invalid-argument-type] Argument is incorrect: Expected `datetime`, found `RDD[T@transform]`
+ python/pyspark/streaming/dstream.py:408:32 error

Report truncated. [Download the untruncated content (ZIP)](https://github.com/astral-sh/ruff/actions/runs/43676970426/artifacts/14146288785).

[Full report with detailed diff](https://dqhfo45wdv0ek.cloudfront.net/ruff/pull-requests/30443/ty-ecosystem/43676970426/1/diff.html) · [Timing results](https://dqhfo45wdv0ek.cloudfront.net/ruff/pull-requests/30443/ty-ecosystem/43676970426/1/timing.html)

---

Results for [2a2920b](https://github.com/astral-sh/ruff/commit/2a2920b5febf1ca9aa23b2b4b721509e1b9ea7e5) · [Workflow run](https://github.com/astral-sh/ruff/actions/runs/43676970426/attempts/1)

@codspeed

codspeed Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Merging this PR will degrade performance by 14.97%

❌ 2 regressed benchmarks
✅ 267 untouched benchmarks
⏩ 92 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ Memory ty_check_file[incremental] 105 KB 124.2 KB -15.47%
❌ CPU Simulation ty_check_file[incremental] 15 ms 17.6 ms -14.46%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing typeshedbot/sync-typeshed (2a2920b) with main (6bf6192)

Open in CodSpeed

Footnotes

  1. 92 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@carljm
carljm requested review from carljm and removed request for ibraheemdev November 15, 2026 04:27
@carljm carljm self-assigned this Nov 15, 2026
@carljm
carljm deployed to automations November 15, 2026 04:29 — with GitHub Actions Active
@carljm

carljm commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Not sure we should merge this without pulling in python/typeshed#16809 with it -- it causes a number of new false positives in the ecosystem.

Also, it looks like python/typeshed#16745 is exposing a bug in generic constructor inference; that's causing the remaining test failure. So we may need to fix that before syncing typeshed, or (if that fix looks like it might take a while to land) we could temporarily carry a patch to leave out the new re.escape overload.

@carljm

carljm commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

This also introduces some new ecosystem false positives (in PyTensor and discord.py) from use of reduce(operator.or_, ...). These are fixed by #29027. (I don't think we need to block the typeshed sync on this.)

This branch was successfully deployed

1 active deployment
automations — 2a2920b5 Deployed Nov 15, 2026 by carljm via security-review / security review #98666
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty The ty type checker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant