Skip to content

Commit

Permalink
Enable mypy option --disallow-untyped-calls (#611)
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Christie <tom@tomchristie.com>
  • Loading branch information
michaeloliverx and tomchristie committed Nov 17, 2022
1 parent c68f3f5 commit 2f1cf70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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

0 comments on commit 2f1cf70

Please sign in to comment.