Skip to content
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

Enable mypy option --disallow-untyped-calls #611

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions setup.cfg
Expand Up @@ -9,6 +9,7 @@ ignore_missing_imports = True
no_implicit_optional = True
show_error_codes = True
warn_unused_ignores = True
disallow_untyped_calls = True

[mypy-tests.*]
disallow_untyped_defs = False
Expand Down
4 changes: 2 additions & 2 deletions tests/concurrency.py
Expand Up @@ -10,7 +10,7 @@
"""
import threading
from types import TracebackType
from typing import List, Optional, Type
from typing import Any, Callable, List, Optional, Type


class Nursery:
Expand All @@ -31,7 +31,7 @@ def __exit__(
for thread in self._threads:
thread.join()

def start_soon(self, func, *args):
def start_soon(self, func: Callable[..., object], *args: Any):
thread = threading.Thread(target=func, args=args)
self._threads.append(thread)

Expand Down