8000 Allow objects matching `SupportsKeysAndGetItem` to be unpacked by bryanforbes · Pull Request #14990 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Allow objects matching SupportsKeysAndGetItem to be unpacked #14990

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix fine grained cache test
  • Loading branch information
bryanforbes committed Apr 6, 2023
commit f306debce7bc2153c663cc34b5609ee65e842a5f
8 changes: 5 additions & 3 deletions test-data/unit/fine-grained-modules.test
Original file line number Diff line number Diff line change
Expand Up @@ -1279,12 +1279,12 @@ a.py:2: error: Too many arguments for "foo"

[case testAddModuleAfterCache3-only_when_cache]
# cmd: mypy main a.py
# cmd2: mypy main a.py b.py c.py d.py e.py f.py g.py h.py
# cmd3: mypy main a.py b.py c.py d.py e.py f.py g.py h.py
# cmd2: mypy main a.py b.py c.py d.py e.py f.py g.py h.py i.py j.py
# cmd3: mypy main a.py b.py c.py d.py e.py f.py g.py h.py i.py j.py
# flags: --ignore-missing-imports --follow-imports=skip
import a
[file a.py]
import b, c, d, e, f, g, h
import b, c, d, e, f, g, h, i, j
b.foo(10)
[file b.py.2]
def foo() -> None: pass
Expand All @@ -1294,6 +1294,8 @@ def foo() -> None: pass
[file f.py.2]
[file g.py.2]
[file h.py.2]
[file i.py.2]
[file j.py.2]

-- No files should be stale or reprocessed in the first step since the large number
-- of missing files will force build to give up on cache loading.
Expand Down
0