fixed un needed noqa's
This commit is contained in:
@@ -19,7 +19,7 @@ if TYPE_CHECKING:
|
||||
class MockFuture(Future):
|
||||
"""MockFuture."""
|
||||
|
||||
def __init__(self, result: Any) -> None: # noqa: ANN401
|
||||
def __init__(self, result: Any) -> None:
|
||||
"""Init."""
|
||||
super().__init__()
|
||||
self._result = result
|
||||
@@ -31,7 +31,7 @@ class MockFuture(Future):
|
||||
logging.debug(f"{timeout}=")
|
||||
return self._exception
|
||||
|
||||
def result(self, timeout: float | None = None) -> Any: # noqa: ANN401
|
||||
def result(self, timeout: float | None = None) -> Any:
|
||||
"""Result."""
|
||||
logging.debug(f"{timeout}=")
|
||||
return self._result
|
||||
@@ -40,11 +40,11 @@ class MockFuture(Future):
|
||||
class MockPoolExecutor(ThreadPoolExecutor):
|
||||
"""MockPoolExecutor."""
|
||||
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None: # noqa: ANN401
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
||||
"""Initializes a new ThreadPoolExecutor instance."""
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
def submit(self, fn: Callable[..., Any], /, *args: Any, **kwargs: Any) -> Future: # noqa: ANN401
|
||||
def submit(self, fn: Callable[..., Any], /, *args: Any, **kwargs: Any) -> Future:
|
||||
"""Submits a callable to be executed with the given arguments.
|
||||
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user