[ty] Sync vendored typeshed stubs#25172
Conversation
Typing conformance resultsNo changes detected ✅Current numbersThe percentage of diagnostics emitted that were expected errors held steady at 89.36%. The percentage of expected errors that received a diagnostic held steady at 85.49%. The number of fully passing files held steady at 88/134. |
Memory usage reportSummary
Significant changesClick to expand detailed breakdownsphinx
flake8
prefect
trio
|
|
| Lint rule | Added | Removed | Changed |
|---|---|---|---|
unresolved-attribute |
2 | 21 | 87 |
deprecated |
109 | 0 | 0 |
invalid-argument-type |
38 | 22 | 22 |
unsupported-operator |
0 | 25 | 0 |
invalid-assignment |
6 | 3 | 9 |
unknown-argument |
5 | 9 | 0 |
no-matching-overload |
11 | 2 | 0 |
unresolved-import |
3 | 5 | 0 |
invalid-return-type |
0 | 6 | 1 |
type-assertion-failure |
2 | 0 | 3 |
unresolved-reference |
0 | 5 | 0 |
not-iterable |
0 | 2 | 1 |
subclass-of-final-class |
0 | 3 | 0 |
too-many-positional-arguments |
0 | 3 | 0 |
unused-type-ignore-comment |
2 | 1 | 0 |
invalid-type-form |
0 | 0 | 1 |
missing-argument |
0 | 1 | 0 |
not-subscriptable |
1 | 0 | 0 |
| Total | 179 | 108 | 124 |
Showing a random sample of 233 of 411 changes. See the HTML report for the full diff.
Raw diff sample (233 of 411 changes)
DateType (https://github.com/glyph/DateType)
+ src/datetype/test/test_datetype.py:2:31 warning[deprecated] The function `popen` is deprecated: Soft deprecated. Use the subprocess module instead.
aiohttp (https://github.com/aio-libs/aiohttp)
+ aiohttp/worker.py:241:17 warning[deprecated] The function `set_event_loop_policy` is deprecated: Deprecated since Python 3.14; will be removed in Python 3.16.
anyio (https://github.com/agronholm/anyio)
+ src/anyio/_backends/_asyncio.py:1155:37 warning[deprecated] The function `get_event_loop_policy` is deprecated: Deprecated since Python 3.14; will be removed in Python 3.16.
apprise (https://github.com/caronc/apprise)
+ apprise/plugins/bark.py:436:21 error[invalid-argument-type] Argument to function `post` is incorrect: Expected `tuple[str, str] | ((PreparedRequest, /) -> PreparedRequest) | None`, found `None | tuple[Unknown & ~AlwaysFalsy, Unknown | None]`
+ apprise/plugins/bulkvs.py:257:21 error[invalid-argument-type] Argument to function `post` is incorrect: Expected `tuple[str, str] | ((PreparedRequest, /) -> PreparedRequest) | None`, found `tuple[Unknown | None, Unknown | None]`
+ apprise/plugins/clicksend.py:208:21 error[invalid-argument-type] Argument to function `post` is incorrect: Expected `tuple[str, str] | ((PreparedRequest, /) -> PreparedRequest) | None`, found `tuple[Unknown | None, Unknown | None]`
+ apprise/plugins/custom_form.py:406:17 error[invalid-argument-type] Argument to function `request` is incorrect: Expected `tuple[str, str] | ((PreparedRequest, /) -> PreparedRequest) | None`, found `None | tuple[Unknown & ~AlwaysFalsy, Unknown | None]`
+ apprise/plugins/custom_json.py:321:17 error[invalid-argument-type] Argument to function `request` is incorrect: Expected `tuple[str, str] | ((PreparedRequest, /) -> PreparedRequest) | None`, found `None | tuple[Unknown & ~AlwaysFalsy, Unknown | None]`
+ apprise/plugins/fortysixelks.py:225:21 error[invalid-argument-type] Argument to function `post` is incorrect: Expected `tuple[str, str] | ((PreparedRequest, /) -> PreparedRequest) | None`, found `tuple[Unknown | None, Unknown | None]`
+ apprise/plugins/kodi.py:274:17 error[invalid-argument-type] Argument to function `post` is incorrect: Expected `tuple[str, str] | ((PreparedRequest, /) -> PreparedRequest) | None`, found `None | tuple[Unknown & ~AlwaysFalsy, Unknown | None]`
+ apprise/plugins/nextcloud.py:344:17 error[invalid-argument-type] Argument to function `post` is incorrect: Expected `tuple[str, str] | ((PreparedRequest, /) -> PreparedRequest) | None`, found `tuple[Unknown & ~AlwaysFalsy, Unknown | None] | None`
+ apprise/plugins/notica.py:238:17 error[invalid-argument-type] Argument to function `post` is incorrect: Expected `tuple[str, str] | ((PreparedRequest, /) -> PreparedRequest) | None`, found `None | tuple[Unknown & ~AlwaysFalsy, Unknown | None]`
+ apprise/plugins/pushjet.py:218:17 error[invalid-argument-type] Argument to function `post` is incorrect: Expected `tuple[str, str] | ((PreparedRequest, /) -> PreparedRequest) | None`, found `None | tuple[Unknown & ~AlwaysFalsy, Unknown | None]`
+ apprise/plugins/signal_api.py:367:21 error[invalid-argument-type] Argument to function `post` is incorrect: Expected `tuple[str, str] | ((PreparedRequest, /) -> PreparedRequest) | None`, found `None | tuple[Unknown & ~AlwaysFalsy, Unknown | None]`
+ apprise/plugins/synology.py:289:17 error[invalid-argument-type] Argument to function `post` is incorrect: Expected `tuple[str, str] | ((PreparedRequest, /) -> PreparedRequest) | None`, found `None | tuple[Unknown & ~AlwaysFalsy, Unknown | None]`
- apprise/utils/module.py:38:50 error[invalid-argument-type] Argument to function `module_from_spec` is incorrect: Expected `ModuleSpec`, found `ModuleSpec | None`
+ apprise/utils/module.py:38:50 error[invalid-argument-type] Argument to function `module_from_spec` is incorrect: Expected `ModuleSpec`, found `ModuleSpec | Unknown | None`
- apprise/utils/module.py:41:9 error[unresolved-attribute] Attribute `exec_module` is not defined on `None` in union `Loader | None`
+ apprise/utils/module.py:41:9 error[unresolved-attribute] Attribute `exec_module` is not defined on `None` in union `Unknown | None`
- apprise/utils/module.py:41:9 error[unresolved-attribute] Attribute `loader` is not defined on `None` in union `ModuleSpec | None`
+ apprise/utils/module.py:41:9 error[unresolved-attribute] Attribute `loader` is not defined on `None` in union `ModuleSpec | Unknown | None`
- tests/test_plugin_email.py:680:34 error[invalid-argument-type] Argument to function `isinstance` is incorrect: Expected `type | tuple[Divergent, ...]`, found `<class 'TypeError'> | <class 'NotifyEmail'> | str | bool`
+ tests/test_plugin_email.py:680:34 error[invalid-argument-type] Argument to function `isinstance` is incorrect: Expected `type | UnionType | tuple[Divergent, ...]`, found `<class 'TypeError'> | <class 'NotifyEmail'> | str | bool`
- tests/test_plugin_growl.py:375:34 error[invalid-argument-type] Argument to function `isinstance` is incorrect: Expected `type | tuple[Divergent, ...]`, found `(Unknown & ~None) | <class 'NotifyGrowl'> | bool`
+ tests/test_plugin_growl.py:375:34 error[invalid-argument-type] Argument to function `isinstance` is incorrect: Expected `type | UnionType | tuple[Divergent, ...]`, found `(Unknown & ~None) | <class 'NotifyGrowl'> | bool`
attrs (https://github.com/python-attrs/attrs)
- tests/test_cmp.py:364:23 error[invalid-argument-type] Argument to function `cmp_using` is incorrect: Expected `((Any, Any, /) -> bool) | None`, found `(a: Any, b: Any) -> _NotImplementedType | (bool & Any)`
+ tests/test_cmp.py:364:23 error[invalid-argument-type] Argument to function `cmp_using` is incorrect: Expected `((Any, Any, /) -> bool) | None`, found `(a: Any, b: Any) -> NotImplementedType | (bool & Any)`
+ tests/test_setattr.py:133:18 error[no-matching-overload] No overload of function `attrib` matches arguments
- typing-examples/mypy.py:261:48 error[unsupported-operator] Operator `|` is not supported between objects of type `<class 'int'>` and `<class 'C'>`
cloud-init (https://github.com/canonical/cloud-init)
+ cloudinit/cmd/main.py:1133:23 warning[deprecated] The class `FileType` is deprecated: Deprecated since Python 3.14. Open files after parsing arguments instead.
+ cloudinit/cmd/main.py:1206:23 warning[deprecated] The class `FileType` is deprecated: Deprecated since Python 3.14. Open files after parsing arguments instead.
comtypes (https://github.com/enthought/comtypes)
+ comtypes/test/__init__.py:109:21 warning[deprecated] The function `makeSuite` is deprecated: Deprecated since Python 3.11; removed in Python 3.13.
+ comtypes/test/__init__.py:179:24 warning[deprecated] The function `makeSuite` is deprecated: Deprecated since Python 3.11; removed in Python 3.13.
+ comtypes/test/test_dispinterface.py:148:22 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
core (https://github.com/home-assistant/core)
+ homeassistant/components/wilight/support.py:62:22 error[invalid-argument-type] Argument to `list.__init__` is incorrect: Expected `Iterable[Unknown]`, found `_localized_day`
dd-trace-py (https://github.com/DataDog/dd-trace-py)
- scripts/perf_bench_heartbeat_cycles.py:123:101 error[unsupported-operator] Operator `|` is unsupported between objects of type `<class 'list'>` and `None`
- scripts/tested_versions/generate_tested_versions.py:52:28 error[unresolved-attribute] Module `sys` has no member `stdlib_module_names`
+ tests/appsec/iast/fixtures/taint_sinks/command_injection.py:12:8 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ tests/appsec/iast/fixtures/taint_sinks/command_injection.py:36:15 warning[deprecated] The function `spawnl` is deprecated: Soft deprecated. Use the subprocess module instead.
+ tests/appsec/iast/fixtures/taint_sinks/command_injection.py:41:15 warning[deprecated] The function `spawnlp` is deprecated: Soft deprecated. Use the subprocess module instead.
+ tests/appsec/iast/fixtures/taint_sinks/command_injection.py:46:15 warning[deprecated] The function `spawnv` is deprecated: Soft deprecated. Use the subprocess module instead.
+ tests/appsec/iast/fixtures/taint_sinks/command_injection.py:51:15 warning[deprecated] The function `spawnvp` is deprecated: Soft deprecated. Use the subprocess module instead.
- .gitlab/validate-ddtrace-package.py:68:79 error[unsupported-operator] Operator `|` is unsupported between objects of type `<class 'str'>` and `None`
- ddtrace/appsec/_iast/_ast/visitor.py:429:21 error[unknown-argument] Argument `lineno` does not match any known parameter of `alias.__init__`
- ddtrace/appsec/_iast/_ast/visitor.py:430:21 error[unknown-argument] Argument `col_offset` does not match any known parameter of `alias.__init__`
- ddtrace/appsec/_iast/_ast/visitor.py:445:21 error[unknown-argument] Argument `col_offset` does not match any known parameter of `alias.__init__`
- ddtrace/appsec/_iast/_ast/visitor.py:459:21 error[unknown-argument] Argument `lineno` does not match any known parameter of `alias.__init__`
- ddtrace/errortracking/_handled_exceptions/bytecode_reporting.py:104:12 error[unsupported-operator] Operator `|` is unsupported between objects of type `<class 'HandledExceptionReportingInjector'>` and `None`
- ddtrace/errortracking/_handled_exceptions/callbacks.py:31:51 error[unsupported-operator] Operator `|` is unsupported between objects of type `<class 'tuple[Exception, Span, SpanEventData]'>` and `None`
- ddtrace/errortracking/_handled_exceptions/monitoring_reporting.py:21:58 error[unsupported-operator] Operator `|` is unsupported between objects of type `<class 'str'>` and `None`
- ddtrace/internal/gitmetadata.py:88:20 error[invalid-return-type] Return type does not match returned value: expected `tuple[str, str]`, found `tuple[str | None, str | Unknown]`
+ ddtrace/internal/gitmetadata.py:88:20 error[invalid-return-type] Return type does not match returned value: expected `tuple[str, str]`, found `tuple[str | None, Unknown]`
- ddtrace/internal/logger.py:208:38 error[missing-argument] No arguments provided for required parameters `value`, `tb` of function `format_exception`
- ddtrace/internal/logger.py:208:65 error[invalid-argument-type] Argument to function `format_exception` is incorrect: Expected `type[BaseException] | None`, found `BaseException | None`
- ddtrace/internal/module.py:301:13 error[invalid-assignment] Object of type `bound method Loader | None.get_code(fullname) -> Unknown` is not assignable to attribute `get_code` on type `Loader | None`
+ ddtrace/internal/module.py:301:13 error[invalid-assignment] Object of type `bound method Unknown | None.get_code(fullname) -> Unknown` is not assignable to attribute `get_code` on type `Unknown | None`
+ ddtrace/internal/settings/asm.py:67:42 error[invalid-argument-type] Argument to bound method `Env.var` is incorrect: Expected `<class 'NoneType'>`, found `<types.UnionType special-form 'str | None'>`
+ ddtrace/internal/settings/crashtracker.py:125:38 error[invalid-argument-type] Argument to bound method `Env.d` is incorrect: Expected `type[Unknown]`, found `<types.UnionType special-form 'str | None'>`
+ ddtrace/internal/settings/dynamic_instrumentation.py:128:9 error[invalid-argument-type] Argument to bound method `Env.d` is incorrect: Expected `<class 'Pattern[str]'> | <class 'NoneType'>`, found `<types.UnionType special-form 'Pattern[Unknown] | None'>`
- ddtrace/llmobs/_experiment.py:26:24 error[unresolved-import] Module `typing` has no member `TypeAlias`
+ ddtrace/llmobs/_experiment.py:544:26 error[invalid-assignment] Object of type `<types.UnionType special-form '((Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, /) -> Awaitable[Sequence[Divergent] | int | float | ... omitted 4 union elements]) | BaseAsyncEvaluator | list[@Todo] | @Todo'>` is not assignable to `<types.UnionType special-form '((Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, /) -> Awaitable[Sequence[Divergent] | int | float | ... omitted 4 union elements]) | BaseAsyncEvaluator | list[@Todo]'> | <types.UnionType special-form '((Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, /) -> Awaitable[Sequence[Divergent] | int | float | ... omitted 4 union elements]) | BaseAsyncEvaluator'>`
- ddtrace/llmobs/_experiment.py:1716:13 error[unresolved-attribute] Attribute `name` is not defined on `((Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, /) -> Sequence[Divergent] | int | float | ... omitted 4 union elements) & <Protocol with members '_is_remote_evaluator'>`, `list[@Todo] & <Protocol with members '_is_remote_evaluator'>`, `((Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, /) -> Awaitable[Sequence[Divergent] | int | float | ... omitted 4 union elements]) & <Protocol with members '_is_remote_evaluator'>` in union `(((Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, /) -> Sequence[Divergent] | int | float | ... omitted 4 union elements) & <Protocol with members '_is_remote_evaluator'>) | (BaseEvaluator & <Protocol with members '_is_remote_evaluator'>) | (list[@Todo] & <Protocol with members '_is_remote_evaluator'>) | ... omitted 3 union elements`
+ ddtrace/llmobs/_experiment.py:1716:13 error[unresolved-attribute] Attribute `name` is not defined on `((Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, /) -> Sequence[Divergent] | int | float | ... omitted 4 union elements) & <Protocol with members '_is_remote_evaluator'>`, `list[@Todo] & <Protocol with members '_is_remote_evaluator'>`, `((Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, /) -> Awaitable[Sequence[Divergent] | int | float | ... omitted 4 union elements]) & <Protocol with members '_is_remote_evaluator'>` in union `(((Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, /) -> Sequence[Divergent] | int | float | ... omitted 4 union elements) & <Protocol with members '_is_remote_evaluator'>) | (BaseEvaluator & <Protocol with members '_is_remote_evaluator'>) | (list[@Todo] & <Protocol with members '_is_remote_evaluator'>) | (((Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, /) -> Awaitable[Sequence[Divergent] | int | float | ... omitted 4 union elements]) & <Protocol with members '_is_remote_evaluator'>) | (BaseAsyncEvaluator & <Protocol with members '_is_remote_evaluator'>)`
- ddtrace/llmobs/_experiment.py:2403:46 error[unresolved-attribute] Attribute `name` is not defined on `((Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, /) -> Sequence[Divergent] | int | float | ... omitted 4 union elements) & ~BaseAsyncEvaluator`, `list[@Todo] & ~BaseAsyncEvaluator`, `((Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, /) -> Awaitable[Sequence[Divergent] | int | float | ... omitted 4 union elements]) & ~BaseAsyncEvaluator` in union `(((Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, /) -> Sequence[Divergent] | int | float | ... omitted 4 union elements) & ~BaseAsyncEvaluator) | (BaseEvaluator & ~BaseAsyncEvaluator) | (list[@Todo] & ~BaseAsyncEvaluator) | (@Todo & ~BaseAsyncEvaluator) | (((Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, /) -> Awaitable[Sequence[Divergent] | int | float | ... omitted 4 union elements]) & ~BaseAsyncEvaluator)`
+ ddtrace/llmobs/_experiment.py:2403:46 error[unresolved-attribute] Attribute `name` is not defined on `((Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, /) -> Sequence[Divergent] | int | float | ... omitted 4 union elements) & ~BaseAsyncEvaluator`, `list[@Todo] & ~BaseAsyncEvaluator`, `((Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, /) -> Awaitable[Sequence[Divergent] | int | float | ... omitted 4 union elements]) & ~BaseAsyncEvaluator` in union `(((Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, /) -> Sequence[Divergent] | int | float | ... omitted 4 union elements) & ~BaseAsyncEvaluator) | (BaseEvaluator & ~BaseAsyncEvaluator) | (list[@Todo] & ~BaseAsyncEvaluator) | (((Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, Sequence[Divergent] | int | float | ... omitted 3 union elements, /) -> Awaitable[Sequence[Divergent] | int | float | ... omitted 4 union elements]) & ~BaseAsyncEvaluator)`
- scripts/run-script-doctests.py:28:46 error[invalid-argument-type] Argument to function `module_from_spec` is incorrect: Expected `ModuleSpec`, found `ModuleSpec | None`
+ scripts/run-script-doctests.py:28:46 error[invalid-argument-type] Argument to function `module_from_spec` is incorrect: Expected `ModuleSpec`, found `ModuleSpec | Unknown | None`
- scripts/view_trace_snapshot.py:731:60 error[unsupported-operator] Operator `|` is unsupported between objects of type `<class 'Path'>` and `None`
- scripts/view_trace_snapshot.py:747:70 error[unsupported-operator] Operator `|` is unsupported between objects of type `<class 'str'>` and `None`
+ tests/appsec/app.py:1022:28 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ tests/appsec/contrib_appsec/django_app/urls.py:168:54 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ tests/appsec/contrib_appsec/fastapi_app/app.py:251:58 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ tests/appsec/contrib_appsec/fastapi_app/app_subapps.py:285:58 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ tests/appsec/contrib_appsec/flask_app/app.py:164:54 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
- tests/appsec/iast/aspects/test_asyncio.py:71:20 error[unresolved-reference] Name `anext` used when not defined
- tests/appsec/iast/aspects/test_asyncio.py:79:20 error[unresolved-reference] Name `anext` used when not defined
- tests/appsec/iast/aspects/test_asyncio.py:87:19 error[unresolved-reference] Name `anext` used when not defined
- tests/appsec/iast/aspects/test_asyncio.py:104:20 error[unresolved-reference] Name `anext` used when not defined
- tests/appsec/iast/aspects/test_asyncio.py:109:20 error[unresolved-reference] Name `anext` used when not defined
+ tests/appsec/integrations/django_tests/django_app/views.py:570:8 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
- tests/appsec/integrations/django_tests/django_app/views.py:119:27 error[invalid-argument-type] Argument to function `load` is incorrect: Expected `type[Unknown]`, found `Any | None`
+ tests/appsec/integrations/django_tests/django_app/views.py:119:27 error[invalid-argument-type] Argument to function `load` is incorrect: Expected `type[Loader | BaseLoader | FullLoader | ... omitted 7 types]`, found `Any | None`
- tests/appsec/integrations/fastapi_tests/test_fastapi_appsec_iast.py:601:16 error[unsupported-operator] Operator `|` is unsupported between objects of type `<class 'float'>` and `None`
- tests/appsec/integrations/fastapi_tests/test_fastapi_appsec_iast.py:602:14 error[unsupported-operator] Operator `|` is unsupported between objects of type `<class 'float'>` and `None`
- tests/appsec/integrations/pygoat_tests/test_pygoat.py:65:83 error[unsupported-operator] Operator `|` is unsupported between objects of type `<class 'str'>` and `None`
- tests/commands/test_runner.py:216:37 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/commands/test_runner.py:216:37 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/commands/test_runner.py:252:12 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/commands/test_runner.py:252:12 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/commands/test_runner.py:261:12 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/commands/test_runner.py:261:12 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/commands/test_runner.py:272:15 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/commands/test_runner.py:272:15 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/commands/test_runner.py:287:11 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/commands/test_runner.py:287:11 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/commands/test_runner.py:312:14 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/commands/test_runner.py:312:14 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/commands/test_runner.py:368:14 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/commands/test_runner.py:368:14 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/commands/test_runner.py:404:25 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/commands/test_runner.py:404:25 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/contrib/celery/test_chained_task.py:51:19 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/contrib/celery/test_chained_task.py:51:19 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/contrib/celery/test_integration.py:799:23 error[unresolved-attribute] Attribute `readline` is not defined on `None` in union `IO[bytes] | None`
+ tests/contrib/celery/test_integration.py:799:23 error[unresolved-attribute] Attribute `readline` is not defined on `None` in union `IO[Any] | None`
- tests/contrib/django/test_django_snapshots.py:75:16 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[AnyStr@Popen] | None`
+ tests/contrib/django/test_django_snapshots.py:75:16 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/contrib/elasticsearch/test_async.py:62:14 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/contrib/elasticsearch/test_async.py:62:14 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/contrib/elasticsearch/test_elasticsearch_multi.py:49:14 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/contrib/elasticsearch/test_elasticsearch_multi.py:49:14 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
+ tests/contrib/flask/app.py:69:14 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ tests/contrib/flask/app.py:78:18 warning[deprecated] The function `spawnl` is deprecated: Soft deprecated. Use the subprocess module instead.
- tests/contrib/flask/test_appsec_flask_pytest_iast_no_snapshot.py:44:14 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/contrib/flask/test_appsec_flask_pytest_iast_no_snapshot.py:44:14 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/contrib/flask/test_flask_snapshot.py:72:22 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/contrib/flask/test_flask_snapshot.py:72:22 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/contrib/gevent/test_tracer.py:390:26 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/contrib/gevent/test_tracer.py:390:26 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/contrib/gevent/test_tracer.py:390:43 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/contrib/gevent/test_tracer.py:390:43 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
+ tests/contrib/subprocess/test_subprocess.py:244:22 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ tests/contrib/subprocess/test_subprocess.py:305:22 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ tests/contrib/subprocess/test_subprocess.py:317:22 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ tests/contrib/subprocess/test_subprocess.py:347:23 warning[deprecated] The function `popen` is deprecated: Soft deprecated. Use the subprocess module instead.
+ tests/contrib/subprocess/test_subprocess.py:371:13 warning[deprecated] The function `spawnl` is deprecated: Soft deprecated. Use the subprocess module instead.
+ tests/contrib/subprocess/test_subprocess.py:373:13 warning[deprecated] The function `spawnle` is deprecated: Soft deprecated. Use the subprocess module instead.
+ tests/contrib/subprocess/test_subprocess.py:386:13 warning[deprecated] The function `spawnvpe` is deprecated: Soft deprecated. Use the subprocess module instead.
+ tests/contrib/subprocess/test_subprocess.py:610:24 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ tests/contrib/subprocess/test_subprocess.py:788:21 warning[deprecated] The function `popen` is deprecated: Soft deprecated. Use the subprocess module instead.
- tests/integration/test_debug.py:320:31 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/integration/test_debug.py:320:31 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/integration/test_debug.py:322:70 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/integration/test_debug.py:322:70 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/integration/test_debug.py:333:14 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/integration/test_debug.py:333:14 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/integration/test_debug.py:347:31 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/integration/test_debug.py:347:31 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/integration/test_debug.py:348:14 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/integration/test_debug.py:348:14 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/integration/test_debug.py:360:31 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/integration/test_debug.py:360:31 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/integration/test_debug.py:374:14 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ tests/integration/test_debug.py:374:14 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- tests/internal/bytecode_injection/test_core.py:25:17 error[unresolved-attribute] Object of type `CodeType` has no attribute `co_lines`
- tests/profiling/collector/lock_test_common.py:39:30 error[unresolved-attribute] Module `types` has no member `UnionType`
+ tests/profiling/collector/test_asyncio_param_forwarding.py:96:50 error[unknown-argument] Argument `loop` does not match any known parameter of function `shield`
dedupe (https://github.com/dedupeio/dedupe)
- dedupe/convenience.py:77:12 error[invalid-return-type] Return type does not match returned value: expected `Iterator[tuple[int, int]]`, found `zip[_T_co@zip]`
- dedupe/api.py:551:34 error[invalid-assignment] Object of type `list[tuple[tuple[int, int], int | float] | tuple[tuple[str, str], int | float] | ndarray[Unknown, dtype[Any]]]` is not assignable to `Iterable[ndarray[Unknown, dtype[Any]]] | Iterable[tuple[tuple[int, int], int | float]] | Iterable[tuple[tuple[str, str], int | float]]`
+ dedupe/api.py:551:34 error[invalid-assignment] Object of type `list[tuple[tuple[int, int], int | float] | tuple[tuple[str, str], int | float] | ndarray[tuple[Any, ...], dtype[Any]]]` is not assignable to `Iterable[ndarray[tuple[Any, ...], dtype[Any]]] | Iterable[tuple[tuple[int, int], int | float]] | Iterable[tuple[tuple[str, str], int | float]]`
discord.py (https://github.com/Rapptz/discord.py)
+ discord/state.py:658:51 error[invalid-assignment] Object of type `Queue[_T@Queue | Guild]` is not assignable to `Queue[Guild]`: Incompatible value of type `Queue[_T@Queue | Guild]`
+ discord/state.py:1956:13 error[invalid-assignment] Invalid subscript assignment with key of type `int` and value of type `Queue[_T@Queue | Guild]` on object of type `dict[int, Queue[Guild]]`
dulwich (https://github.com/dulwich/dulwich)
+ dulwich/client.py:5253:28 warning[deprecated] The function `url2pathname` is deprecated: The `nturl2path` module is deprecated since Python 3.14.
+ dulwich/client.py:5255:12 warning[deprecated] The function `url2pathname` is deprecated: The `nturl2path` module is deprecated since Python 3.14.
- dulwich/client.py:2695:36 error[invalid-argument-type] Argument to `BufferedReader.__init__` is incorrect: Expected `_BufferedReaderStream`, found `IO[bytes]`
+ dulwich/client.py:2695:36 error[invalid-argument-type] Argument to `BufferedReader.__init__` is incorrect: Expected `_BufferedReaderStream`, found `IO[Any]`
hydpy (https://github.com/hydpy-dev/hydpy)
+ hydpy/docs/combine_docversions.py:25:15 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
- hydpy/core/testtools.py:1217:9 error[invalid-assignment] Object of type `<class '_Open'>` is not assignable to attribute `open` of type `Overload[(file: int | str | bytes | PathLike[str] | PathLike[bytes], mode: Literal["r+", "+r", "rt+", "r+t", "+rt", ... omitted 48 literals] = "r", buffering: int = -1, encoding: str | None = None, errors: str | None = None, newline: str | None = None, closefd: bool = True, opener: ((str, int, /) -> int) | None = None) -> TextIOWrapper[_WrappedBuffer], (file: int | str | bytes | PathLike[str] | PathLike[bytes], mode: Literal["rb+", "r+b", "+rb", "br+", "b+r", ... omitted 33 literals], buffering: Literal[0], encoding: None = None, errors: None = None, newline: None = None, closefd: bool = True, opener: ((str, int, /) -> int) | None = None) -> FileIO, (file: int | str | bytes | PathLike[str] | PathLike[bytes], mode: Literal["rb+", "r+b", "+rb", "br+", "b+r", ... omitted 19 literals], buffering: Literal[-1, 1] = -1, encoding: None = None, errors: None = None, newline: None = None, closefd: bool = True, opener: ((str, int, /) -> int) | None = None) -> BufferedRandom, (file: int | str | bytes | PathLike[str] | PathLike[bytes], mode: Literal["wb", "bw", "ab", "ba", "xb", "bx"], buffering: Literal[-1, 1] = -1, encoding: None = None, errors: None = None, newline: None = None, closefd: bool = True, opener: ((str, int, /) -> int) | None = None) -> BufferedWriter, (file: int | str | bytes | PathLike[str] | PathLike[bytes], mode: Literal["rb", "br", "rbU", "rUb", "Urb", ... omitted 3 literals], buffering: Literal[-1, 1] = -1, encoding: None = None, errors: None = None, newline: None = None, closefd: bool = True, opener: ((str, int, /) -> int) | None = None) -> BufferedReader[_BufferedReaderStream], (file: int | str | bytes | PathLike[str] | PathLike[bytes], mode: Literal["rb+", "r+b", "+rb", "br+", "b+r", ... omitted 33 literals], buffering: int = -1, encoding: None = None, errors: None = None, newline: None = None, closefd: bool = True, opener: ((str, int, /) -> int) | None = None) -> BinaryIO, (file: int | str | bytes | PathLike[str] | PathLike[bytes], mode: str, buffering: int = -1, encoding: str | None = None, errors: str | None = None, newline: str | None = None, closefd: bool = True, opener: ((str, int, /) -> int) | None = None) -> IO[Any]]`
+ hydpy/core/testtools.py:1217:9 error[invalid-assignment] Object of type `<class '_Open'>` is not assignable to attribute `open` of type `Overload[(file: int | str | bytes | PathLike[str] | PathLike[bytes], mode: Literal["r+", "+r", "rt+", "r+t", "+rt", ... omitted 48 literals] = "r", buffering: int = -1, encoding: str | None = None, errors: str | None = None, newline: str | None = None, closefd: bool = True, opener: ((str, int, /) -> int) | None = None) -> TextIOWrapper[_WrappedBuffer], (file: int | str | bytes | PathLike[str] | PathLike[bytes], mode: Literal["rb+", "r+b", "+rb", "br+", "b+r", ... omitted 33 literals], buffering: Literal[0], encoding: None = None, errors: None = None, newline: None = None, closefd: bool = True, opener: ((str, int, /) -> int) | None = None) -> FileIO, (file: int | str | bytes | PathLike[str] | PathLike[bytes], mode: Literal["rb+", "r+b", "+rb", "br+", "b+r", ... omitted 19 literals], buffering: Literal[-1, 1] = -1, encoding: None = None, errors: None = None, newline: None = None, closefd: bool = True, opener: ((str, int, /) -> int) | None = None) -> BufferedRandom, (file: int | str | bytes | PathLike[str] | PathLike[bytes], mode: Literal["wb", "bw", "ab", "ba", "xb", "bx"], buffering: Literal[-1, 1] = -1, encoding: None = None, errors: None = None, newline: None = None, closefd: bool = True, opener: ((str, int, /) -> int) | None = None) -> BufferedWriter[_BufferedWriterStream], (file: int | str | bytes | PathLike[str] | PathLike[bytes], mode: Literal["rb", "br", "rbU", "rUb", "Urb", ... omitted 3 literals], buffering: Literal[-1, 1] = -1, encoding: None = None, errors: None = None, newline: None = None, closefd: bool = True, opener: ((str, int, /) -> int) | None = None) -> BufferedReader[_BufferedReaderStream], (file: int | str | bytes | PathLike[str] | PathLike[bytes], mode: Literal["rb+", "r+b", "+rb", "br+", "b+r", ... omitted 33 literals], buffering: int = -1, encoding: None = None, errors: None = None, newline: None = None, closefd: bool = True, opener: ((str, int, /) -> int) | None = None) -> BinaryIO, (file: int | str | bytes | PathLike[str] | PathLike[bytes], mode: str, buffering: int = -1, encoding: str | None = None, errors: str | None = None, newline: str | None = None, closefd: bool = True, opener: ((str, int, /) -> int) | None = None) -> IO[Any]]`
ibis (https://github.com/ibis-project/ibis)
+ ibis/backends/polars/compiler.py:1176:30 error[invalid-argument-type] Argument to constructor `enumerate.__new__` is incorrect: Expected `Iterable[Unknown]`, found `_localized_day`
+ ibis/backends/sql/compilers/base.py:999:60 error[invalid-argument-type] Argument to constructor `enumerate.__new__` is incorrect: Expected `Iterable[Unknown]`, found `_localized_day`
+ ibis/backends/sql/compilers/clickhouse.py:532:52 error[invalid-argument-type] Argument to constructor `enumerate.__new__` is incorrect: Expected `Iterable[Unknown]`, found `_localized_day`
+ ibis/backends/sql/compilers/pyspark.py:184:60 error[invalid-argument-type] Argument to constructor `enumerate.__new__` is incorrect: Expected `Iterable[Unknown]`, found `_localized_day`
+ ibis/backends/tests/tpc/ds/test_queries.py:2158:33 error[invalid-argument-type] Argument to constructor `map.__new__` is incorrect: Expected `(int | slice[Any, Any, Any], /) -> str | list[str]`, found `Overload[(i: int) -> str, (i: slice[Any, Any, Any]) -> list[str]]`
- ibis/backends/tests/tpc/ds/test_queries.py:2155:20 error[unresolved-attribute] Object of type `Sequence[str]` has no attribute `lower`
ignite (https://github.com/pytorch/ignite)
+ tests/ignite/distributed/test_launcher.py:187:8 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
kopf (https://github.com/nolar/kopf)
+ kopf/_kits/loops.py:40:35 warning[deprecated] The function `get_event_loop_policy` is deprecated: Deprecated since Python 3.14; will be removed in Python 3.16.
+ kopf/_kits/loops.py:47:25 warning[deprecated] The function `set_event_loop_policy` is deprecated: Deprecated since Python 3.14; will be removed in Python 3.16.
+ kopf/_kits/loops.py:58:25 warning[deprecated] The function `set_event_loop_policy` is deprecated: Deprecated since Python 3.14; will be removed in Python 3.16.
manticore (https://github.com/trailofbits/manticore)
- manticore/core/smtlib/solver.py:222:26 error[invalid-argument-type] Argument to function `fcntl` is incorrect: Expected `int | HasFileno`, found `IO[str] | None`
+ manticore/core/smtlib/solver.py:222:26 error[invalid-argument-type] Argument to function `fcntl` is incorrect: Expected `int | HasFileno`, found `IO[Any] | None`
- manticore/core/smtlib/solver.py:236:13 error[unresolved-attribute] Attribute `close` is not defined on `None` in union `IO[Unknown] | None`
+ manticore/core/smtlib/solver.py:236:13 error[unresolved-attribute] Attribute `close` is not defined on `None` in union `IO[Any] | None`
- manticore/core/smtlib/solver.py:237:13 error[unresolved-attribute] Attribute `close` is not defined on `None` in union `IO[Unknown] | None`
+ manticore/core/smtlib/solver.py:237:13 error[unresolved-attribute] Attribute `close` is not defined on `None` in union `IO[Any] | None`
- manticore/core/smtlib/solver.py:325:9 error[unresolved-attribute] Attribute `flush` is not defined on `None` in union `IO[Unknown] | None`
+ manticore/core/smtlib/solver.py:325:9 error[unresolved-attribute] Attribute `flush` is not defined on `None` in union `IO[Any] | None`
- tests/auto_generators/make_dump.py:40:9 error[unresolved-attribute] Attribute `write` is not defined on `None` in union `IO[Unknown] | None`
+ tests/auto_generators/make_dump.py:40:9 error[unresolved-attribute] Attribute `write` is not defined on `None` in union `IO[Any] | None`
- tests/auto_generators/trace.py:30:27 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Unknown] | None`
+ tests/auto_generators/trace.py:30:27 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
+ tests/wasm_sym/json2smc.py:8:47 warning[deprecated] The class `FileType` is deprecated: Deprecated since Python 3.14. Open files after parsing arguments instead.
meson (https://github.com/mesonbuild/meson)
- mesonbuild/cmake/executor.py:146:24 error[unresolved-attribute] Attribute `readline` is not defined on `None` in union `IO[bytes] | None`
+ mesonbuild/cmake/executor.py:146:24 error[unresolved-attribute] Attribute `readline` is not defined on `None` in union `IO[Any] | None`
- mesonbuild/cmake/executor.py:161:28 error[unresolved-attribute] Attribute `readline` is not defined on `None` in union `IO[bytes] | None`
+ mesonbuild/cmake/executor.py:161:28 error[unresolved-attribute] Attribute `readline` is not defined on `None` in union `IO[Any] | None`
- mesonbuild/compilers/mixins/elbrus.py:68:18 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ mesonbuild/compilers/mixins/elbrus.py:68:18 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
- mesonbuild/mlog.py:165:17 error[unresolved-attribute] Attribute `flush` is not defined on `None` in union `IO[Unknown] | None`
+ mesonbuild/mlog.py:165:17 error[unresolved-attribute] Attribute `flush` is not defined on `None` in union `IO[Any] | None`
- mesonbuild/mlog.py:166:17 error[unresolved-attribute] Attribute `close` is not defined on `None` in union `IO[Unknown] | None`
+ mesonbuild/mlog.py:166:17 error[unresolved-attribute] Attribute `close` is not defined on `None` in union `IO[Any] | None`
mitmproxy (https://github.com/mitmproxy/mitmproxy)
+ test/mitmproxy/utils/test_asyncio_utils.py:55:25 warning[deprecated] The function `get_event_loop_policy` is deprecated: Deprecated since Python 3.14; will be removed in Python 3.16.
mkdocs (https://github.com/mkdocs/mkdocs)
- mkdocs/config/config_options.py:692:45 error[invalid-assignment] Object of type `staticmethod[(path: int | str | bytes | PathLike[str] | PathLike[bytes]), bool]` is not assignable to `(str, /) -> bool`
mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- pymongo/asynchronous/pool.py:388:33 error[invalid-argument-type] Argument to function `isinstance` is incorrect: Expected `type | tuple[Divergent, ...]`, found `Sequence[type[Any]]`
+ pymongo/asynchronous/pool.py:388:33 error[invalid-argument-type] Argument to function `isinstance` is incorrect: Expected `type | UnionType | tuple[Divergent, ...]`, found `Sequence[type[Any]]`
- pymongo/synchronous/pool.py:388:33 error[invalid-argument-type] Argument to function `isinstance` is incorrect: Expected `type | tuple[Divergent, ...]`, found `Sequence[type[Any]]`
+ pymongo/synchronous/pool.py:388:33 error[invalid-argument-type] Argument to function `isinstance` is incorrect: Expected `type | UnionType | tuple[Divergent, ...]`, found `Sequence[type[Any]]`
mypy (https://github.com/python/mypy)
+ mypy/typeshed/stdlib/posix.pyi:206:9 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ mypy/typeshed/stdlib/typing_extensions.pyi:65:5 warning[deprecated] The function `no_type_check_decorator` is deprecated: Deprecated since Python 3.13; removed in Python 3.15.
mypy-protobuf (https://github.com/dropbox/mypy-protobuf)
+ test/test_generated_mypy.py:503:5 error[type-assertion-failure] Type `Unknown` does not match asserted type `UserId`
openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/coverstore/tests/test_webapp.py:3:16 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ openlibrary/coverstore/tests/test_webapp.py:17:5 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ openlibrary/data/dump.py:170:21 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
- openlibrary/plugins/admin/code.py:175:15 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[bytes] | None`
+ openlibrary/plugins/admin/code.py:175:15 error[unresolved-attribute] Attribute `read` is not defined on `None` in union `IO[Any] | None`
optuna (https://github.com/optuna/optuna)
- optuna/_gp/optim_sample.py:23:12 error[invalid-return-type] Return type does not match returned value: expected `tuple[ndarray[Unknown, dtype[Any]], int | float]`, found `tuple[ndarray[Unknown, dtype[Any]], ndarray[Unknown, dtype[Any]]]`
- optuna/_transform.py:164:55 error[invalid-argument-type] Argument to bound method `CategoricalDistribution.to_external_repr` is incorrect: Expected `int | float`, found `signedinteger[Unknown] | Unknown`
- optuna/importance/_ped_anova/scott_parzen_estimator.py:115:12 error[invalid-return-type] Return type does not match returned value: expected `tuple[int, ndarray[Unknown, dtype[Any]]]`, found `tuple[Unknown, signedinteger[Unknown]]`
- optuna/_gp/optim_mixed.py:116:16 error[invalid-return-type] Return type does not match returned value: expected `tuple[ndarray[Unknown, dtype[Any]], int | float, bool]`, found `tuple[Unknown, ndarray[Unknown, dtype[Any]], Literal[True]]`
- optuna/_gp/search_space.py:84:21 error[invalid-argument-type] Argument to function `_normalize_one_param` is incorrect: Expected `_ScaleType`, found `ndarray[Unknown, Unknown]`
- optuna/_gp/search_space.py:116:21 error[invalid-argument-type] Argument to function `_normalize_one_param` is incorrect: Expected `int | float`, found `ndarray[Unknown, Unknown]`
- optuna/_gp/search_space.py:192:53 error[invalid-argument-type] Argument to function `_round_one_normalized_param` is incorrect: Expected `tuple[int | float, int | float]`, found `tuple[ndarray[Unknown, Unknown], ndarray[Unknown, Unknown]]`
- optuna/samplers/_cmaes.py:32:24 error[unresolved-import] Module `typing` has no member `TypeAlias`
+ optuna/storages/_rdb/alembic/versions/v3.0.0.c.py:117:48 error[no-matching-overload] No overload matches arguments
+ optuna/storages/_rdb/alembic/versions/v3.0.0.c.py:119:18 error[no-matching-overload] No overload of function `isclose` matches arguments
+ optuna/storages/_rdb/alembic/versions/v3.0.0.c.py:123:69 error[no-matching-overload] No overload of function `isneginf` matches arguments
+ optuna/storages/_rdb/alembic/versions/v3.0.0.d.py:127:54 error[no-matching-overload] No overload of function `isposinf` matches arguments
+ optuna/storages/_rdb/alembic/versions/v3.0.0.d.py:129:18 error[no-matching-overload] No overload of function `isclose` matches arguments
+ optuna/storages/_rdb/alembic/versions/v3.0.0.d.py:129:56 error[no-matching-overload] No overload of function `isneginf` matches arguments
- tests/gp_tests/test_acqf.py:76:34 error[invalid-argument-type] Argument to `BaseAcquisitionFunc.__init__` is incorrect: Expected `ndarray[Unknown, dtype[Any]]`, found `GPRegressor | SearchSpace`
+ tests/gp_tests/test_acqf.py:76:34 error[invalid-argument-type] Argument to `BaseAcquisitionFunc.__init__` is incorrect: Expected `ndarray[tuple[Any, ...], dtype[Any]]`, found `GPRegressor | SearchSpace`
- tests/gp_tests/test_search_space.py:108:13 error[invalid-argument-type] Argument to function `_unnormalize_one_param` is incorrect: Expected `_ScaleType`, found `ndarray[Unknown, Unknown]`
- tests/samplers_tests/test_nsgaii.py:857:40 error[invalid-argument-type] Argument to bound method `CategoricalDistribution.to_internal_repr` is incorrect: Expected `None | int | float | str`, found `ndarray[Unknown, dtype[Any]]`
+ tests/samplers_tests/test_nsgaii.py:939:16 error[no-matching-overload] No overload of function `full` matches arguments
- tests/storages_tests/test_with_server.py:85:30 error[not-iterable] Object of type `numpy.bool[builtins.bool]` is not iterable
- tutorial/20_recipes/013_wilcoxon_pruner.py:87:21 error[invalid-argument-type] Argument to bound method `list.append` is incorrect: Expected `int`, found `signedinteger[Unknown]`
+ tutorial/20_recipes/013_wilcoxon_pruner.py:87:21 error[invalid-argument-type] Argument to bound method `list.append` is incorrect: Expected `int`, found `signedinteger[_64Bit]`
paasta (https://github.com/yelp/paasta)
- paasta_tools/utils.py:2867:17 error[unresolved-attribute] Attribute `write` is not defined on `None` in union `IO[str] | None`
+ paasta_tools/utils.py:2867:17 error[unresolved-attribute] Attribute `write` is not defined on `None` in union `IO[Any] | None`
- paasta_tools/utils.py:2868:17 error[unresolved-attribute] Attribute `flush` is not defined on `None` in union `IO[str] | None`
+ paasta_tools/utils.py:2868:17 error[unresolved-attribute] Attribute `flush` is not defined on `None` in union `IO[Any] | None`
pip (https://github.com/pypa/pip)
+ src/pip/_vendor/distlib/compat.py:488:29 error[unresolved-import] Module `collections` has no member `MutableMapping`
prefect (https://github.com/PrefectHQ/prefect)
+ src/integrations/prefect-ray/tests/test_task_runners.py:38:22 warning[deprecated] The function `get_event_loop_policy` is deprecated: Deprecated since Python 3.14; will be removed in Python 3.16.
+ src/integrations/prefect-redis/tests/conftest.py:25:20 warning[deprecated] The function `get_event_loop_policy` is deprecated: Deprecated since Python 3.14; will be removed in Python 3.16.
pwndbg (https://github.com/pwndbg/pwndbg)
+ pwndbg/aglib/heap/structs.py:99:69 error[invalid-assignment] Object of type `dict[type[c_char | c_byte | c_int16 | ... omitted 6 types] | Unknown, Type]` is not assignable to `dict[type[c_char], Type]`
- pwndbg/dbg_mod/lldb/repl/fuzzy.py:146:21 error[unresolved-attribute] Attribute `write` is not defined on `None` in union `IO[str] | None`
+ pwndbg/dbg_mod/lldb/repl/fuzzy.py:146:21 error[unresolved-attribute] Attribute `write` is not defined on `None` in union `IO[Any] | None`
pybind11 (https://github.com/pybind/pybind11)
+ docs/benchmark.py:80:12 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
- tests/test_pytypes.py:1193:25 error[unresolved-import] Module `inspect` has no member `get_annotations`
pyodide (https://github.com/pyodide/pyodide)
- pyodide-build/pyodide_build/recipe/builder.py:532:21 error[unresolved-attribute] Attribute `fileno` is not defined on `None` in union `IO[bytes] | None`
+ pyodide-build/pyodide_build/recipe/builder.py:532:21 error[unresolved-attribute] Attribute `fileno` is not defined on `None` in union `IO[Any] | None`
+ src/py/pyodide/webloop.py:1116:13 warning[deprecated] The function `set_event_loop_policy` is deprecated: Deprecated since Python 3.14; will be removed in Python 3.16.
pytest (https://github.com/pytest-dev/pytest)
+ testing/freeze/tox_run.py:16:17 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
pywin32 (https://github.com/mhammond/pywin32)
+ com/win32com/test/pippo_server.py:51:17 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ com/win32com/test/util.py:82:13 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ com/win32com/test/util.py:97:13 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ setup.py:424:29 warning[deprecated] The function `popen` is deprecated: Soft deprecated. Use the subprocess module instead.
+ win32/Lib/win32serviceutil.py:801:20 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
rich (https://github.com/Textualize/rich)
- tests/test_console.py:1018:5 error[unresolved-attribute] Attribute `close` is not defined on `None` in union `IO[bytes] | None`
+ tests/test_console.py:1018:5 error[unresolved-attribute] Attribute `close` is not defined on `None` in union `IO[Any] | None`
rotki (https://github.com/rotki/rotki)
+ rotkehlchen/tests/conftest.py:481:29 warning[deprecated] The function `popen` is deprecated: Soft deprecated. Use the subprocess module instead.
+ rotkehlchen/tests/conftest.py:515:26 warning[deprecated] The function `popen` is deprecated: Soft deprecated. Use the subprocess module instead.
+ rotkehlchen/tests/conftest.py:521:25 warning[deprecated] The function `popen` is deprecated: Soft deprecated. Use the subprocess module instead.
scikit-build-core (https://github.com/scikit-build/scikit-build-core)
- tests/test_sources_pep604_union.py:29:30 error[unresolved-attribute] Module `types` has no member `UnionType`
- tests/test_sources_pep604_union.py:63:27 error[unsupported-operator] Operator `|` is not supported between objects of type `<class 'str'>` and `None`
scipy (https://github.com/scipy/scipy)
- scipy/fftpack/tests/gen_fftw_ref.py:24:54 error[unresolved-attribute] Attribute `readlines` is not defined on `None` in union `IO[bytes] | None`
+ scipy/fftpack/tests/gen_fftw_ref.py:24:54 error[unresolved-attribute] Attribute `readlines` is not defined on `None` in union `IO[Any] | None`
+ tools/write_release_and_log.py:78:8 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
scrapy (https://github.com/scrapy/scrapy)
+ scrapy/commands/edit.py:48:28 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ scrapy/commands/genspider.py:123:36 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
- tests/mockserver/ftp.py:37:21 error[not-iterable] Object of type `IO[str] | None` may not be iterable
+ tests/mockserver/ftp.py:37:21 error[not-iterable] Object of type `IO[Any] | None` may not be iterable
- tests/mockserver/http_base.py:50:28 error[unresolved-attribute] Attribute `readline` is not defined on `None` in union `IO[str] | None`
+ tests/mockserver/http_base.py:50:28 error[unresolved-attribute] Attribute `readline` is not defined on `None` in union `IO[Any] | None`
- tests/mockserver/http_base.py:54:29 error[unresolved-attribute] Attribute `readline` is not defined on `None` in union `IO[str] | None`
+ tests/mockserver/http_base.py:54:29 error[unresolved-attribute] Attribute `readline` is not defined on `None` in union `IO[Any] | None`
spack (https://github.com/spack/spack)
- lib/spack/spack/install_test.py:411:21 error[unresolved-attribute] Object of type `Counter[Unknown]` has no attribute `total`
- lib/spack/spack/llnl/util/lang.py:840:46 error[invalid-argument-type] Argument to function `module_from_spec` is incorrect: Expected `ModuleSpec`, found `ModuleSpec | None`
+ lib/spack/spack/llnl/util/lang.py:840:46 error[invalid-argument-type] Argument to function `module_from_spec` is incorrect: Expected `ModuleSpec`, found `ModuleSpec | Unknown | None`
- lib/spack/spack/llnl/util/lang.py:847:9 error[unresolved-attribute] Attribute `exec_module` is not defined on `None` in union `Loader | None`
+ lib/spack/spack/llnl/util/lang.py:847:9 error[unresolved-attribute] Attribute `exec_module` is not defined on `None` in union `Unknown | None`
+ lib/spack/spack/vendor/altgraph/Dot.py:209:12 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ lib/spack/spack/vendor/altgraph/Dot.py:308:16 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ lib/spack/spack/vendor/altgraph/Dot.py:321:12 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ lib/spack/spack/vendor/jinja2/loaders.py:348:52 warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
+ lib/spack/spack/vendor/jinja2/loaders.py:386:54 warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
- lib/spack/spack/vendor/pyrsistent/_transformations.py:5:17 error[invalid-assignment] Object of type `None` is not assignable to `def signature(obj: (...) -> Any, *, follow_wrapped: bool = True) -> Signature`
+ lib/spack/spack/vendor/pyrsistent/_transformations.py:5:17 error[invalid-assignment] Object of type `None` is not assignable to `def signature(obj: (...) -> Any, *, follow_wrapped: bool = True, globals: Mapping[str, Any] | None = None, locals: Mapping[str, Any] | None = None, eval_str: bool = False) -> Signature`
- lib/spack/spack/vendor/typing_extensions.py:1649:26 error[subclass-of-final-class] Class `_TypeAliasForm` cannot inherit from final class `_SpecialForm`
- lib/spack/spack/vendor/typing_extensions.py:1878:25 error[unresolved-attribute] Module `typing` has no member `_GenericAlias`
- lib/spack/spack/vendor/typing_extensions.py:1953:28 error[subclass-of-final-class] Class `_ConcatenateForm` cannot inherit from final class `_SpecialForm`
- lib/spack/spack/vendor/typing_extensions.py:1955:56 error[unresolved-attribute] Object of type `Self@__repr__` has no attribute `_name`
- lib/spack/spack/vendor/typing_extensions.py:1961:9 error[too-many-positional-arguments] Too many positional arguments to `object.__init__`: expected 1, got 2
- lib/spack/spack/vendor/typing_extensions.py:2066:26 error[subclass-of-final-class] Class `_TypeGuardForm` cannot inherit from final class `_SpecialForm`
- lib/spack/spack/vendor/typing_extensions.py:2077:9 error[too-many-positional-arguments] Too many positional arguments to `object.__init__`: expected 1, got 2
- lib/spack/spack/vendor/typing_extensions.py:2078:9 error[unknown-argument] Argument `doc` does not match any known parameter of `object.__init__`
static-frame (https://github.com/static-frame/static-frame)
+ static_frame/profile/__main__.py:2447:12 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
+ static_frame/profile/__main__.py:2523:12 warning[deprecated] The function `system` is deprecated: Soft deprecated. Use the subprocess module instead.
tornado (https://github.com/tornadoweb/tornado)
+ tornado/autoreload.py:339:26 warning[deprecated] The function `get_loader` is deprecated: Deprecated since Python 3.12; removed in Python 3.14. Use `importlib.util.find_spec()` instead.
+ tornado/test/asyncio_test.py:217:36 warning[deprecated] The function `get_event_loop_policy` is deprecated: Deprecated since Python 3.14; will be removed in Python 3.16.
+ tornado/test/asyncio_test.py:221:17 warning[deprecated] The function `set_event_loop_policy` is deprecated: Deprecated since Python 3.14; will be removed in Python 3.16.
+ tornado/test/asyncio_test.py:249:21 warning[deprecated] The function `set_event_loop_policy` is deprecated: Deprecated since Python 3.14; will be removed in Python 3.16.
+ tornado/test/asyncio_test.py:268:21 warning[deprecated] The function `set_event_loop_policy` is deprecated: Deprecated since Python 3.14; will be removed in Python 3.16.
trio (https://github.com/python-trio/trio)
- src/trio/_tests/type_tests/path.py:125:5 error[type-assertion-failure] Type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]` does not match asserted type `AsyncIOWrapper[BufferedWriter]`
+ src/trio/_tests/type_tests/path.py:125:5 error[type-assertion-failure] Type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]` does not match asserted type `AsyncIOWrapper[BufferedWriter[_BufferedWriterStream]]`
urllib3 (https://github.com/urllib3/urllib3)
- src/urllib3/util/ssltransport.py:156:22 error[invalid-assignment] Object of type `BufferedRWPair[SocketIO]` is not assignable to `BinaryIO`
+ src/urllib3/util/ssltransport.py:156:22 error[invalid-assignment] Object of type `BufferedRWPair[SocketIO, SocketIO]` is not assignable to `BinaryIO`
xarray (https://github.com/pydata/xarray)
- xarray/core/dataarray.py:1482:29 error[invalid-assignment] Object of type `dict[Hashable, int | (Mapping[Any, Resampler | str | int | tuple[int, ...] | None] & float) | str]` is not assignable to `str | int | tuple[int, ...] | None | Mapping[Any, Resampler | str | int | tuple[int, ...] | None]`
+ xarray/core/dataarray.py:1482:29 error[invalid-assignment] Object of type `dict[Hashable, (Mapping[Any, Resampler | str | int | tuple[int, ...] | None] & int) | (Mapping[Any, Resampler | str | int | tuple[int, ...] | None] & float) | str]` is not assignable to `str | int | tuple[int, ...] | None | Mapping[Any, Resampler | str | int | tuple[int, ...] | None]`
- xarray/namedarray/core.py:851:59 error[invalid-argument-type] Argument to bound method `ChunkManagerEntrypoint.from_array` is incorrect: Expected `tuple[tuple[int, ...], ...]`, found `Mapping[Any, str | int | tuple[int, ...] | None] | str | int | ... omitted 4 union elements`
+ xarray/namedarray/core.py:851:59 error[invalid-argument-type] Argument to bound method `ChunkManagerEntrypoint.from_array` is incorrect: Expected `tuple[tuple[int, ...], ...]`, found `Mapping[Any, str | int | tuple[int, ...] | None] | str | tuple[int, ...] | ... omitted 4 union elements`
zope.interface (https://github.com/zopefoundation/zope.interface)
- src/zope/interface/common/tests/test_io.py:36:56 error[invalid-argument-type] Argument to `BufferedWriter.__init__` is incorrect: Expected `RawIOBase`, found `StringIO`
+ src/zope/interface/common/tests/test_io.py:36:56 error[invalid-argument-type] Argument to `BufferedWriter.__init__` is incorrect: Argument type `StringIO` does not satisfy upper bound `_BufferedWriterStream` of type variable `_BufferedWriterStreamT`
zulip (https://github.com/zulip/zulip)
+ zerver/management/commands/runtornado.py:37:13 warning[deprecated] The function `set_event_loop_policy` is deprecated: Deprecated since Python 3.14; will be removed in Python 3.16.
Merging this PR will improve performance by 6.94%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ | Simulation | ty_micro[many_tuple_assignments] |
70.6 ms | 65.7 ms | +7.39% |
| ⚡ | Simulation | ty_micro[vararg_parameter_type_accumulation] |
68.8 ms | 64 ms | +7.5% |
| ⚡ | Memory | ty_micro[vararg_parameter_type_accumulation] |
14.6 MB | 13.8 MB | +5.93% |
Tip
Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.
Comparing typeshedbot/sync-typeshed (3091602) with main (25af028)
|
The automated commits in this PR added >=3.15 branches to the stdlib and removed <3.10 branches from the stdlib. This is quite a big change that we should make sure to mention in our changelog. The following commits by me and @MichaReiser update lots of snapshots and fix various tests. We had a fair bit of code providing dedicated diagnostic hints if you tried to use PEP 604 unions on Python <3.10: I've just removed all of that logic. Now that typeshed claims that |
|
| ## Diagnostics for PEP-604 unions used on Python less than 3.10 | ||
|
|
||
| PEP-604 unions generally don't work on Python 3.9 and earlier: |
There was a problem hiding this comment.
This might be a naive question but if ty still supports 3.9, this wouldn't raise a diagnostic from the next release, right? Does that require updating the supported Python version for ty? I think not because we'd just not raise this diagnostic.
There was a problem hiding this comment.
Not a naive question!
Yep, that's right -- we cannot fully claim to support Python 3.9 after this PR is merged. We'll have false negatives on things like this, where we should really emit a diagnostic but we no longer will. This is already true for Python 3.8 and Python 3.7, though -- typeshed removed the stdlib branches for those Python versions long ago, so we cannot claim to fully support those versions, yet we still allow --python-version=3.7 to be passed on the CLI.
We could definitely consider formally dropping support for Python 3.7-3.9, to clarify things for users. On the other hand, folks who really are still using those very old Python versions will still get version-specific syntax errors for those versions, and I don't know that it costs us much to continue letting folks pass --python-version=3.9 on the command line.
There was a problem hiding this comment.
Got it, thanks! Yeah, I think it's fine to continue declaring support for older Python versions.
Close and reopen this PR to trigger CI --------- Co-authored-by: typeshedbot <> Co-authored-by: Micha Reiser <[email protected]> Co-authored-by: Alex Waygood <[email protected]>
Close and reopen this PR to trigger CI --------- Co-authored-by: typeshedbot <> Co-authored-by: Micha Reiser <[email protected]> Co-authored-by: Alex Waygood <[email protected]>
Close and reopen this PR to trigger CI