8000 stubtest: error if module level dunder is missing, housekeeping by hauntsaninja · Pull Request #12217 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

stubtest: error if module level dunder is missing, housekeeping #12217

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
merged 4 commits into from
Feb 20, 2022
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
Next Next commit
flake8
  • Loading branch information
hauntsaninja committed Feb 20, 2022
commit dbc7b45d0ec8b7bce7fd478bb746c4427e9c99aa
4 changes: 3 additions & 1 deletion mypy/test/teststubtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,9 @@ def test_missing_no_runtime_all(self) -> Iterator[Case]:

@collect_cases
def test_non_public_1(self) -> Iterator[Case]:
yield Case(stub="__all__: list[str]", runtime="", error="test_module.__all__") # dummy case
yield Case(
stub="__all__: list[str]", runtime="", error="test_module.__all__"
) # dummy case
yield Case(stub="_f: int", runtime="def _f(): ...", error="_f")

@collect_cases
Expand Down
0