Repository navigation
[ty] Sync vendored typeshed stubs - #30443
astral-automations-bot[bot] wants to merge 9 commits into
Conversation
Typing conformance resultsNo changes detected ✅Current numbersThe 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 |
Memory usage reportSummary
Significant changesClick to expand detailed breakdownsphinx
prefect
trio
flake8
Results for 2a2920b · Workflow run |
|
| 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)
Merging this PR will degrade performance by 14.97%
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
|
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 |
|
This also introduces some new ecosystem false positives (in PyTensor and discord.py) from use of |
No description provided.