10000 Fix dmypy run when no target given by emmatyping · Pull Request #6153 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Fix dmypy run when no target given #6153

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 8 commits into from
Jan 8, 2019
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
Add test
  • Loading branch information
emmatyping committed Jan 7, 2019
commit 86831f2e6435027114a0e8b6cb2a9593142f9430
10 changes: 10 additions & 0 deletions test-data/unit/daemon.test
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,13 @@ Daemon stopped
import bar
[file bar.py]
pass

[case testDaemonRunNoTarget]
$ dmypy run -- --follow-imports=error
Daemon started
usage: mypy [-h] [-v] [-V] [more options; see below]
[-m MODULE] [-p PACKAGE] [-c PROGRAM_TEXT] [files ...]
mypy: error: Missing target module, package, files, or command.
== Return code: 2
$ dmypy stop
Daemon stopped
0