8000 Fix config file parsing of disallow_any/disallow_untyped_defs combination by JelleZijlstra · Pull Request #4076 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Fix config file parsing of disallow_any/disallow_untyped_defs combination #4076

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
Oct 13, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add failing test case
  • Loading branch information
JelleZijlstra committed Oct 9, 2017
commit 90b0a499d0a4930d3d650ab4ff492bdd02a7f5ae
10 changes: 10 additions & 0 deletions test-data/unit/cmdline.test
Original file line number Diff line number Diff line change
Expand Up @@ -1078,3 +1078,13 @@ ignore_errors = True
ignore_errors = False
[out]
a/b/c/d/e/__init__.py:1: error: "int" not callable

[case testDisallowUntypedDefsAndGenerics]
# cmd: mypy a.py
[file mypy.ini]
[[mypy]
disallow_untyped_defs = True
disallow_any = generics
[file a.py]
def get_tasks(self): # E: Function is missing a type annotation
return 'whatever'
0