Skip to content

fix support type check for patch assert_called_with #3913 - #4795

Closed
asukaminato0721 wants to merge 1 commit into
meta:mainfrom
asukaminato0721:3913
Closed

asukaminato0721 wants to merge 1 commit into
meta:mainfrom
asukaminato0721:3913

Conversation

@asukaminato0721

Copy link
Copy Markdown
Collaborator

Summary

Fixes #3913

patch("module.callable") now retains the target signature through context managers and .start().

assert_called_with, assert_called_once_with, assert_any_call, and async equivalents validate arguments.

Handles sync, async, and bound methods.

new_callable= retains its declared replacement type.

Test Plan

add test

@meta-cla meta-cla Bot added the cla signed label Sep 3, 2026
@github-actions github-actions Bot added the size/l label Sep 3, 2026
@meta-codesync

meta-codesync Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D118577969. (Because this pull request was imported automatically, there will not be any future comments.)

@github-actions

This comment has been minimized.

Comment thread pyrefly/lib/alt/call.rs Resolved
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions github-actions Bot added the stale label Sep 26, 2026
meta-codesync Bot pushed a commit that referenced this pull request Oct 13, 2026
Summary:
Mock assertion methods (`assert_called_with`, `assert_called_once_with`, `assert_any_call`, `assert_awaited_*`) accept arguments that do not match the patched function's signature.

This PR adds regression tests extracted from the complete fix PR #4795, which retains the implementation. Related issue: #3913.

The tests document current behavior and pass on `main`:

- Four `bug = "Mock assertions do not check the target signature"` tests (`test_assert_called_with_checks_target_signature`, `test_patch_start_checks_target_signature`, `test_async_patch_checks_await_assertion`, `test_patch_bound_method_checks_bound_signature`) mark the lines that should error with `# BUG:` comments; no error is currently reported.
- `test_patch_special_function_call_uses_target_signature` and `test_patch_new_callable_keeps_declared_result` check that patching `typing.assert_type` and using `new_callable` produce no false positives.

When the fix in #4795 lands, the `# BUG:` lines become `# E:` expectations and the `bug =` markers are removed.

Pull Request resolved: #5049

Reviewed By: kinto0

Differential Revision: D122390435

fbshipit-source-id: c4b0d42532a4885b7195c63da5495b41cfb72650
@github-actions github-actions Bot added size/m and removed size/l labels Oct 14, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@stroxler stroxler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm going to reassign this to @rchen152, because I think there's a tradeoff here:

  • on the one hand it's really neat to support more unit testing with types
  • on the other hand, it's not obvious how to make this configurable, and if we don't this is a big breaking change (as evidenced by a pretty sizable increase in mypy_primer errors). A big expansion of type coverage that just happens immediately on upgrade is potentially very frustrating for current users of Pyrefly

With that in mind, I'm not going to take over final review on this, but here are some notes from an AI review that might be helpful; the reviewers flagged several issues (some of which might partially explain the mypy_primer delta, although I think most of it is probably just the byproduct of more type coverage)


  1. Class-level method patches incorrectly retain self.
    [call.rs:2996–2997](

    metadata.flags.unittest_mock_type = Some(Box::new(mock_type));
    *mock = target;
    )
    For C.method(self, x: int), patching "mod.C.method" and calling C().method(1) records call(1) without self. The PR rejects the valid m.assert_called_once_with(1) with both a missing-x error and an int-to-C error. Signature retention needs to distinguish ordinary patching from autospec=True.

  2. Mock calls inherit an unjustified return type.
    [call.rs:2623–2632](

    _ if ty.toplevel_func_metadata().is_some_and(|metadata| metadata.flags.unittest_mock_type.is_some()) =>
    self.freeform_call_infer(
    ty.clone(),
    &args,
    &kws,
    x.func.range(),
    x.arguments.range(),
    hint,
    errors,
    ).ty,
    )
    Given foo(x: int) -> int, patch("mod.foo", return_value="ok") still makes m(1) an int, rejecting result: str = m(1). Default child-mock chaining also starts failing. Retaining an assertion signature should not imply that a configured mock returns the original function’s result.

  3. Explicit alternate autospec is ignored.
    [call.rs:2872–2876](

    let uses_default_mock = x.arguments.find_keyword("new").is_none()
    && x.arguments.find_keyword("new_callable").is_none();
    self.specialize_unittest_mock_patch(
    result,
    unittest_mock_patch_target.filter(|_| uses_default_mock),
    )
    With foo(x: int) and a zero-argument replacement, patch("mod.foo", autospec=replacement) accepts m() and m.assert_called_once_with() at runtime. The PR reports missing x on both. Use the supplied autospec’s signature, or conservatively skip specialization.

  4. Equality-based assertion matchers become false positives.
    [attr.rs:750–752](

    let mut target = base.clone();
    target.transform_toplevel_callable_signatures(|callable, _| callable.ret = Type::None);
    Some(target)
    )
    An IntMatcher whose __eq__ matches integers works in m.assert_called_once_with(IntMatcher()), but the PR rejects it as not assignable to int. Assertions compare expected values; they are not ordinary calls to the target. unittest.mock.ANY itself passed my checks.

Smaller issue: [call.rs:2968](

let is_async = metadata.flags.is_async;
) selects AsyncMock from is_async, including async generators. CPython uses MagicMock for those.

Design and validation

A structural suggestion: keep mock behavior separate from the target’s assertion signature, with mock-specific logic owned behind thin call/attribute hooks. Also gate the new keyword scans on a resolved patch target rather than running them for every call.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

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

============================================================
SUMMARY
============================================================
Total: +402 new errors, -49 fixed errors
By preset: +0/-0 (default), +0/-0 (strict)

Projects with changes (15):
  apprise: +25 -0
  mkdocs: +25 -0
  openlibrary: +141 -1
  rotki: +24 -21
  scikit-learn: +1 -0
  alerta: +1 -1
  mitmproxy: +3 -8
  streamlit: +0 -1
  cloud-init: +160 -11
  zulip: +5 -6
  pandera: +6 -0
  bandersnatch: +6 -0
  xarray: +1 -0
  cvxpy: +2 -0
  optuna: +2 -0
============================================================

FULL DIFF DETAILS
------------------------------------------------------------

apprise (https://github.com/caronc/apprise)
+ ERROR tests/test_api.py:1538:10-1541:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_api.py:1577:10-1580:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_api.py:1679:10-1682:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_api.py:1730:10-1733:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_apprise_template.py:2348:10-79: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_conversion.py:3848:10-3851:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_plugin_emby.py:104:1-56: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_plugin_emby.py:105:1-53: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_plugin_emby.py:106:1-54: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_plugin_emby.py:295:1-53: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_plugin_emby.py:296:1-54: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_plugin_emby.py:390:1-53: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_plugin_matrix.py:3249:10-3252:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_plugin_matrix.py:3257:10-3260:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_plugin_matrix.py:3264:10-3267:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_plugin_mattermost.py:864:10-867:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_plugin_mattermost.py:888:10-891:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_plugin_onebot.py:386:10-390:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_plugin_webex_teams.py:668:10-671:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_plugin_wechat.py:261:9-79: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_plugin_whapi.py:414:10-416:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_retry_wait.py:472:22-65: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_retry_wait.py:475:24-42: The type of the returned value is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_retry_wait.py:504:22-65: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_retry_wait.py:507:24-42: The type of the returned value is partially unknown; it contains an implicit `Any` [partially-unknown-type]

mkdocs (https://github.com/mkdocs/mkdocs)
+ ERROR mkdocs/tests/cli_tests.py:218:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:238:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:249:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:260:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:275:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:290:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:307:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:324:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:341:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:358:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:368:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:385:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:414:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:427:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:440:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:457:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:473:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:494:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:515:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:529:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:545:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:564:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:585:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:606:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR mkdocs/tests/cli_tests.py:627:5-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]

openlibrary (https://github.com/internetarchive/openlibrary)
+ ERROR openlibrary/plugins/openlibrary/tests/test_likes.py:216:9-78: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/openlibrary/tests/test_likes.py:249:9-78: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_account.py:195:5-74: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_account.py:220:5-74: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_account.py:242:5-74: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_account.py:260:5-74: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_account.py:275:5-74: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_account.py:331:5-71: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_borrow.py:45:13-85: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_borrow.py:46:13-105: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_borrow.py:66:13-85: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_borrow.py:67:13-105: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_borrow.py:70:13-103: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_borrow.py:71:13-110: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_borrow.py:72:13-75:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_borrow.py:108:13-89: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_borrow.py:164:13-89: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_borrow.py:269:13-75: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_borrow.py:274:20-43: The type of attribute `assert_called_once_with` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_code.py:73:14-92: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_code.py:99:14-103: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_code.py:112:14-103: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_code.py:218:13-106: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/upstream/tests/test_mybooks.py:338:9-111: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/worksearch/tests/test_subjects.py:50:13-53:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/worksearch/tests/test_subjects.py:59:19-42: The type of attribute `assert_called_once_with` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/worksearch/tests/test_subjects.py:69:13-72:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/worksearch/tests/test_subjects.py:78:19-42: The type of attribute `assert_called_once_with` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/worksearch/tests/test_subjects.py:86:14-89:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/worksearch/tests/test_subjects.py:102:13-105:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/worksearch/tests/test_subjects.py:121:13-124:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/worksearch/tests/test_subjects.py:130:19-42: The type of attribute `assert_called_once_with` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/worksearch/tests/test_subjects.py:349:14-352:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/worksearch/tests/test_subjects.py:376:14-379:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/worksearch/tests/test_subjects.py:390:14-393:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/worksearch/tests/test_subjects.py:409:14-412:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/worksearch/tests/test_subjects.py:432:14-435:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/worksearch/tests/test_subjects.py:448:14-451:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/plugins/worksearch/tests/test_subjects.py:465:14-468:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/core/test_lending.py:120:14-95: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/core/test_lending.py:127:14-95: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/core/test_lending.py:142:14-95: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/core/test_lending.py:149:14-95: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/core/test_lending.py:162:14-95: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/core/test_lending.py:169:14-95: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/core/test_lending.py:183:14-106: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/core/test_lending.py:193:14-106: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/core/test_lending.py:201:14-106: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/core/test_lending.py:206:14-106: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/core/test_lending.py:251:13-81: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/core/test_lending.py:275:13-107: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/conftest.py:86:10-78: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/conftest.py:108:10-82: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/conftest.py:158:10-81: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/conftest.py:223:10-81: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_account.py:97:9-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_account.py:173:9-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_account.py:196:9-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_account.py:218:9-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_account.py:248:9-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_account.py:272:9-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_account.py:292:9-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_account.py:311:9-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_account.py:351:9-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_account.py:369:9-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_account.py:425:9-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_account.py:450:9-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_account.py:474:9-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_account.py:498:9-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_account.py:525:9-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_account_loans.py:66:13-112: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_account_loans.py:95:13-107: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_account_loans.py:180:13-111: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_auth.py:53:83-148: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_auth.py:60:83-147: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_auth.py:67:83-147: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_book_availability.py:12:10-82: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_booknotes.py:15:9-70: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_booknotes.py:16:9-73: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_books.py:34:10-104: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_books.py:41:10-79: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_borrow.py:12:14-100: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_borrow.py:19:14-91: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_borrow.py:31:14-91: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_borrow.py:38:14-91: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_borrow.py:50:14-91: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_borrow.py:68:14-91: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_borrow.py:81:14-91: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_borrow.py:96:14-91: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_borrow.py:139:13-90: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_borrow.py:154:13-90: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_github.py:53:9-120: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_github.py:64:9-137: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_github.py:75:9-142: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_github.py:88:9-120: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_github.py:110:9-120: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_list_seeds.py:69:13-72:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_lists_delete.py:25:10-28:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_lists_json.py:16:13-109: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_lists_json.py:28:24-47: The type of attribute `assert_called_once_with` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_lists_json.py:62:13-109: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_lists_json.py:70:24-47: The type of attribute `assert_called_once_with` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_lists_json.py:83:13-109: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_lists_json.py:90:24-47: The type of attribute `assert_called_once_with` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_lists_json.py:100:13-105: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_lists_json.py:122:13-118: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_lists_json.py:137:22-45: The type of attribute `assert_called_once_with` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_lists_json.py:149:13-88: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_lists_json.py:187:13-190:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_lists_json.py:210:13-216:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_merge_authors.py:67:10-70:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_mybooks_integration.py:92:9-113: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_mybooks_integration.py:304:13-114: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_search.py:634:13-84: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_search.py:650:13-84: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_server_timing.py:95:10-45: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_tasks_feed.py:9:10-78: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_tasks_rows.py:13:10-90: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_tasks_rows.py:21:9-87: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_testing_status.py:104:23-107:10: The type of `get_pr_info` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_testing_status.py:116:9-20: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_testing_status.py:182:9-97: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_testing_status.py:215:9-98: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_testing_status.py:241:9-97: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_testing_status.py:325:9-89: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_testing_status.py:462:9-465:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_testing_status.py:486:9-89: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_testing_status.py:811:9-89: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_testing_status.py:858:9-861:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_testing_status.py:882:9-885:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_testing_status.py:916:9-89: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_testing_status.py:1026:9-88: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_testing_status.py:1361:9-99: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_testing_status.py:1362:9-104: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR openlibrary/tests/fastapi/test_testing_status.py:1426:43-49: The type of this argument is unknown [unknown-argument-type]
+ ERROR openlibrary/tests/fastapi/test_testing_status.py:1470:10-88: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_trending.py:19:10-95: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_unified_loans_carousel.py:79:9-76: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/fastapi/test_unified_loans_carousel.py:162:9-76: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/plugins/upstream/test_recentchanges_undo.py:145:13-87: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/plugins/upstream/test_recentchanges_undo.py:168:13-87: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR openlibrary/tests/plugins/upstream/test_recentchanges_undo.py:200:13-87: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]

rotki (https://github.com/rotki/rotki)
- ERROR rotkehlchen/tests/exchanges/test_kraken.py:348:9-41: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR rotkehlchen/tests/fixtures/dataupdates.py:22:13-152: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR rotkehlchen/tests/fixtures/db.py:123:13-48: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR rotkehlchen/tests/fixtures/globaldb.py:174:13-177:15: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR rotkehlchen/tests/fixtures/globaldb.py:178:13-181:15: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR rotkehlchen/tests/fixtures/globaldb.py:186:13-188:14: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR rotkehlchen/tests/fixtures/rotkehlchen.py:279:28-141: The type of `no_decoder_patch` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/events/test_match_asset_movements.py:432:10-88: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/events/test_match_asset_movements.py:1407:10-1410:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/events/test_match_asset_movements.py:1489:10-1492:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/globaldb/test_globaldb_cache.py:1090:10-111: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/globaldb/test_globaldb_cache.py:1129:10-113: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/globaldb/test_globaldb_cache.py:1143:9-112: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/tests/unit/globaldb/test_upgrades.py:2145:17-2147:19: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR rotkehlchen/tests/unit/test_bitcoin.py:529:28-532:44: The type of `blockchain_info_mock` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/test_bitcoin.py:539:10-30: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/test_bitcoin_cash.py:151:14-154:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/test_bitcoin_transactions.py:1017:9-1020:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/test_bitcoin_transactions.py:1021:9-1024:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/test_bitcoin_transactions.py:1778:9-1784:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/test_calendar_reminders.py:349:9-137: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/test_calendar_reminders.py:410:9-413:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/tests/unit/test_data_updates.py:376:9-98: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR rotkehlchen/tests/unit/test_data_updates.py:410:9-94: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR rotkehlchen/tests/unit/test_data_updates.py:438:9-112: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR rotkehlchen/tests/unit/test_data_updates.py:477:9-99: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR rotkehlchen/tests/unit/test_data_updates.py:505:9-99: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR rotkehlchen/tests/unit/test_data_updates.py:543:9-79: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR rotkehlchen/tests/unit/test_data_updates.py:569:9-99: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR rotkehlchen/tests/unit/test_data_updates.py:605:9-79: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR rotkehlchen/tests/unit/test_ethereum_airdrops.py:389:9-137: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/test_ethereum_airdrops.py:535:9-137: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/test_ethereum_inquirer.py:645:29-132: The type of `query_web3_logs_patch` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/test_ethereum_inquirer.py:660:33-54: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/test_ethereum_inquirer.py:731:29-132: The type of `query_web3_logs_patch` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/test_ethereum_inquirer.py:733:33-54: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/tests/unit/test_evm_transactions.py:1646:9-98: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR rotkehlchen/tests/unit/test_historical_balances.py:2476:10-2479:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/test_historical_balances.py:2514:10-2517:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR rotkehlchen/tests/unit/test_inquirer.py:771:10-84: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR rotkehlchen/tests/utils/pnl_report.py:44:9-47:11: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR rotkehlchen/tests/utils/solana.py:39:9-42:11: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR rotkehlchen/tests/utils/solana.py:43:9-46:11: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR rotkehlchen/tests/utils/solana.py:47:9-50:11: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR rotkehlchen/tests/utils/solana.py:52:9-55:11: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]

scikit-learn (https://github.com/scikit-learn/scikit-learn)
+ ERROR sklearn/datasets/tests/test_20news.py:136:14-34: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]

alerta (https://github.com/alerta/alerta)
- ERROR tests/test_zrouting.py:39:9-32: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR tests/test_zrouting.py:39:9-32: Result of call expression is of type `unittest.mock.MagicMock@470:7-16` and is not used; assign to `_` if this is intentional [unused-call-result]

mitmproxy (https://github.com/mitmproxy/mitmproxy)
- ERROR test/mitmproxy/addons/test_readfile.py:103:17-41: Result of call expression is of type `Unknown | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR test/mitmproxy/addons/test_readfile.py:103:21-39: The type of attribute `assert_not_awaited` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR test/mitmproxy/addons/test_readfile.py:101:18-65: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR test/mitmproxy/addons/test_readfile.py:105:17-37: Result of call expression is of type `Unknown | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR test/mitmproxy/addons/test_readfile.py:105:21-35: The type of attribute `assert_awaited` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR test/mitmproxy/addons/test_readfile.py:115:18-65: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR test/mitmproxy/addons/test_readfile.py:118:17-41: Result of call expression is of type `Unknown | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR test/mitmproxy/addons/test_readfile.py:118:21-39: The type of attribute `assert_not_awaited` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR test/mitmproxy/addons/test_readfile.py:121:17-37: Result of call expression is of type `Unknown | None` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR test/mitmproxy/addons/test_readfile.py:121:21-35: The type of attribute `assert_awaited` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR test/mitmproxy/tools/web/test_app.py:426:14-68: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]

streamlit (https://github.com/streamlit/streamlit)
- ERROR lib/tests/streamlit/watcher/path_watcher_test.py:79:43-60: The type of this argument is unknown because it comes from an error [unknown-from-error]

cloud-init (https://github.com/canonical/cloud-init)
+ ERROR tests/conftest.py:170:10-58: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:43:20-46:6: The type of `read_sys_net` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:48:28-51:6: The type of `update_event_enabled` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:54:17-57:6: The type of `parse_net` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:61:5-25: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:61:5-25: Result of call expression is of type `unittest.mock.MagicMock@470:7-16` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:61:18-23: The type of attribute `start` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:61:23-25: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:62:5-33: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:62:5-33: Result of call expression is of type `unittest.mock.MagicMock@470:7-16` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:62:26-31: The type of attribute `start` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:62:31-33: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:63:5-22: Result of call expression is of type `AsyncMock | MagicMock` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:63:5-22: Result of call expression is of type `unittest.mock.MagicMock@470:7-16` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:63:15-20: The type of attribute `start` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:63:20-22: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:73:18-22: The type of attribute `stop` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:73:22-24: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:74:26-30: The type of attribute `stop` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:74:30-32: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:75:15-19: The type of attribute `stop` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:75:19-21: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/cmd/devel/test_hotplug_hook.py:139:14-141:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/cmd/devel/test_init.py:20:22-22:18: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/cmd/devel/test_init.py:22:20-75: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/cmd/devel/test_net_convert.py:192:14-54: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/cmd/devel/test_net_convert.py:242:14-54: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/cmd/test_clean.py:468:14-470:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_apt_source_v3.py:586:14-47: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_apt_source_v3.py:594:17-32: The type of attribute `assert_any_call` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_apt_source_v3.py:616:14-47: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_chef.py:46:14-48:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:18:24-75: The type of `m_update_enabled` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:20:13-65: The type of `m_del` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:21:14-47: The type of `m_subp` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:22:15-68: The type of `m_which` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:28:9-33: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:28:26-31: The type of attribute `start` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:28:31-33: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:30:9-22: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:30:15-20: The type of attribute `start` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:30:20-22: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:31:9-23: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:31:16-21: The type of attribute `start` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:31:21-23: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:32:9-24: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:32:17-22: The type of attribute `start` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:32:22-24: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:36:22-26: The type of attribute `stop` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:36:26-28: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:38:11-15: The type of attribute `stop` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:38:15-17: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:39:12-16: The type of attribute `stop` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:39:16-18: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:40:13-17: The type of attribute `stop` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_install_hotplug.py:40:17-19: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_locale.py:34:14-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_locale.py:46:24-42: The type of attribute `assert_called_with` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_locale.py:107:14-62: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_locale.py:111:22-114:18: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR tests/unittests/config/test_cc_locale.py:117:13-121:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_locale.py:116:16-34: The type of attribute `assert_called_with` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_locale.py:129:17-40: The type of attribute `assert_called_once_with` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_package_update_upgrade_install.py:125:14-127:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_package_update_upgrade_install.py:139:20-38: The type of attribute `assert_called_with` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_package_update_upgrade_install.py:152:14-154:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_package_update_upgrade_install.py:175:14-177:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_package_update_upgrade_install.py:232:14-234:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_package_update_upgrade_install.py:273:14-70: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_package_update_upgrade_install.py:299:14-70: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_power_state_change.py:94:14-97:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_puppet.py:388:14-390:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_puppet.py:405:14-407:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_resizefs.py:192:14-66: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_resizefs.py:224:14-66: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_rsyslog.py:93:14-95:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_rsyslog.py:340:14-342:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_set_passwords.py:233:14-235:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/config/test_cc_users_groups.py:142:14-144:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/conftest.py:165:10-167:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/conftest.py:174:10-176:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/conftest.py:197:10-201:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/conftest.py:213:10-215:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test__init__.py:310:18-51: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test__init__.py:312:20-43: The type of attribute `assert_called_once_with` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test__init__.py:318:14-320:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test__init__.py:322:14-47: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test__init__.py:324:16-39: The type of attribute `assert_called_once_with` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test_netbsd.py:46:10-48:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR tests/unittests/distros/test_netconfig.py:294:5-50: Result of call expression is of type `_patch_pass_arg[AsyncMock | MagicMock]` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR tests/unittests/distros/test_netconfig.py:294:5-50: Result of call expression is of type `_patch_pass_arg[unittest.mock.MagicMock@470:7-16]` and is not used; assign to `_` if this is intentional [unused-call-result]
+ ERROR tests/unittests/distros/test_netconfig.py:338:14-59: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test_netconfig.py:608:14-78: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test_netconfig.py:609:18-612:14: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test_netconfig.py:758:14-61: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test_netconfig.py:994:14-61: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test_netconfig.py:1069:14-1071:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test_netconfig.py:1112:14-1114:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test_netconfig.py:1156:14-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test_netconfig.py:1290:14-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test_netconfig.py:1424:14-60: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test_networking.py:42:10-45:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test_networking.py:54:10-56:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test_networking.py:64:10-67:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/distros/test_networking.py:128:14-47: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_dhcp.py:450:14-452:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_dhcp.py:460:18-78: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_dhcp.py:520:14-522:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_dhcp.py:591:14-593:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_dhcp.py:1164:14-68: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_dhcp.py:1213:14-68: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_dhcp.py:1224:18-72: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_dhcp.py:1228:18-72: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_dhcp.py:1272:14-68: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_init.py:49:14-51:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_network_manager.py:21:14-77: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_network_manager.py:66:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_network_manager.py:254:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_network_manager.py:363:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_network_manager.py:553:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_network_manager.py:696:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_network_manager.py:829:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_network_manager.py:966:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_network_state.py:256:14-77: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_networkd.py:474:14-77: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_networkd.py:479:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_networkd.py:490:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_networkd.py:501:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_networkd.py:519:18-67: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_networkd.py:561:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_networkd.py:583:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_networkd.py:597:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_networkd.py:605:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_networkd.py:618:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_networkd.py:631:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_networkd.py:643:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/net/test_networkd.py:660:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/sources/conftest.py:9:10-67: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/sources/test___init__.py:50:10-53:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/sources/test_azure.py:75:10-77:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/sources/test_azure.py:257:10-269:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/sources/test_cloudstack.py:438:14-440:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/sources/test_configdrive.py:881:14-883:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/sources/test_ec2.py:712:14-56: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/sources/test_ec2.py:1999:14-2002:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/sources/test_init.py:284:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/unittests/sources/test_init.py:298:14-63: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]

... (truncated 24 lines) ...

zulip (https://github.com/zulip/zulip)
- ERROR corporate/tests/test_stripe.py:4204:35-58: The type of this argument is unknown because it comes from an error [unknown-from-error]
- ERROR corporate/tests/test_stripe.py:4254:35-58: The type of this argument is unknown because it comes from an error [unknown-from-error]
+ ERROR zerver/tests/test_auth_backends.py:9055:39-58: Argument `UserProfile | str | None` is not assignable to parameter `user_profile` with type `UserProfile` in function `zerver.actions.user_settings.do_change_full_name` [invalid-mock-assertion]
+ ERROR zerver/tests/test_auth_backends.py:9055:39-58: Argument `UserProfile | str | None` is not assignable to parameter `full_name` with type `str` in function `zerver.actions.user_settings.do_change_full_name` [invalid-mock-assertion]
+ ERROR zerver/tests/test_auth_backends.py:9055:39-58: Argument `UserProfile | str | None` is not assignable to parameter `acting_user` with type `UserProfile | None` in function `zerver.actions.user_settings.do_change_full_name` [invalid-mock-assertion]
+ ERROR zerver/tests/test_docs.py:852:14-855:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR zerver/tests/test_docs.py:857:15-38: The type of attribute `assert_called_once_with` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR zerver/tests/test_queue_worker.py:554:57-85: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR zerver/tests/test_queue_worker.py:556:21-52: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR zerver/tests/test_queue_worker.py:556:54-81: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR zerver/tests/test_queue_worker.py:558:62-87: The type of this argument is an explicit `Any` [explicit-any-use]

pandera (https://github.com/pandera-dev/pandera)
+ ERROR tests/pandas/test_schema_components.py:1100:9-1102:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/pandas/test_schema_components.py:1103:9-1105:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/pandas/test_schema_components.py:1288:9-1290:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/pandas/test_schema_components.py:1291:9-1293:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/pandas/test_schema_components.py:1321:9-1323:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/pandas/test_schema_components.py:1324:9-1326:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]

bandersnatch (https://github.com/pypa/bandersnatch)
+ ERROR src/bandersnatch/tests/test_verify.py:698:10-59: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR src/bandersnatch/tests/test_verify.py:734:10-736:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR src/bandersnatch/tests/test_verify.py:775:10-777:6: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR src/bandersnatch/tests/test_verify.py:818:10-87: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR src/bandersnatch/tests/test_verify.py:1236:10-86: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR src/bandersnatch/tests/test_verify.py:1346:14-1348:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]

xarray (https://github.com/pydata/xarray)
+ ERROR xarray/tests/backends/test_h5netcdf.py:479:14-482:10: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]

cvxpy (https://github.com/cvxpy/cvxpy)
+ ERROR cvxpy/tests/test_atoms.py:3142:14-91: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR cvxpy/tests/test_suppfunc.py:270:14-77: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]

optuna (https://github.com/optuna/optuna)
+ ERROR tests/study_tests/test_study.py:1096:14-57: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/study_tests/test_study.py:1783:14-57: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]

@rchen152

rchen152 commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

I'm inclined to not merge this unless we get evidence that there is significant user demand, both because of the mypy primer delta that Steven mentioned and because the implementation looks like it has to reach quite deep into the type checker internals (e.g., a new Type::UnittestMock), and I think we need to hold a pretty high bar for changes to the type representation. Thanks for giving this a go, though. I don't think it's a bad idea, but IMO the tradeoffs don't seem to be worth it.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support type check for patch assert_called_with

4 participants