-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
In type_check_only function flush_errors parameter should be optional #4681
Comments
You're right, the `Optional[]` is unnecessary. Maybe you can submit a PR to
delete it?
…On Tue, Mar 6, 2018 at 1:43 AM, Dmitriy Erlih ***@***.***> wrote:
In PR #4396 <#4396> flush_errors
parameter was added to type_check_only function from main.py:
def type_check_only(sources: List[BuildSource], bin_dir: Optional[str],
options: Options, flush_errors: Optional[Callable[[List[str], bool],
None]]) -> BuildResult:
But flush_errors parameter doesn't have the default value (I assume it
should be None).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4681>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACwrMkBUa5HIjUDvQiroh-rWFAGTZcRNks5tbloygaJpZM4SeZDU>
.
--
--Guido van Rossum (python.org/~guido)
|
So in realpython/pytest-mypy#6, it seems pytest-mypy broke because of the new argument to Also it is valid to pass |
I think we should strongly discourage such use of interfaces internal to mypy. The only public APIs are the command line and the |
In PR #4396 flush_errors parameter was added to type_check_only function from main.py:
def type_check_only(sources: List[BuildSource], bin_dir: Optional[str], options: Options, flush_errors: Optional[Callable[[List[str], bool], None]]) -> BuildResult:
But flush_errors parameter doesn't have the default value (I assume it should be None).
The text was updated successfully, but these errors were encountered: