|
1 | 1 | """Decoy stubbing and spying library."""
|
| 2 | + |
2 | 3 | from typing import Any, Callable, Coroutine, Generic, Optional, Union, overload
|
3 | 4 |
|
4 | 5 | from . import errors, matchers, warnings
|
@@ -40,16 +41,13 @@ def __init__(self) -> None:
|
40 | 41 | self._core = DecoyCore()
|
41 | 42 |
|
42 | 43 | @overload
|
43 |
| - def mock(self, *, cls: Callable[..., ClassT]) -> ClassT: |
44 |
| - ... |
| 44 | + def mock(self, *, cls: Callable[..., ClassT]) -> ClassT: ... |
45 | 45 |
|
46 | 46 | @overload
|
47 |
| - def mock(self, *, func: FuncT) -> FuncT: |
48 |
| - ... |
| 47 | + def mock(self, *, func: FuncT) -> FuncT: ... |
49 | 48 |
|
50 | 49 | @overload
|
51 |
| - def mock(self, *, name: str, is_async: bool = False) -> Any: |
52 |
| - ... |
| 50 | + def mock(self, *, name: str, is_async: bool = False) -> Any: ... |
53 | 51 |
|
54 | 52 | def mock(
|
55 | 53 | self,
|
@@ -255,29 +253,25 @@ def then_do(
|
255 | 253 | def then_enter_with(
|
256 | 254 | self: "Stub[ContextManager[ContextValueT]]",
|
257 | 255 | value: ContextValueT,
|
258 |
| - ) -> None: |
259 |
| - ... |
| 256 | + ) -> None: ... |
260 | 257 |
|
261 | 258 | @overload
|
262 | 259 | def then_enter_with(
|
263 | 260 | self: "Stub[AsyncContextManager[ContextValueT]]",
|
264 | 261 | value: ContextValueT,
|
265 |
| - ) -> None: |
266 |
| - ... |
| 262 | + ) -> None: ... |
267 | 263 |
|
268 | 264 | @overload
|
269 | 265 | def then_enter_with(
|
270 | 266 | self: "Stub[GeneratorContextManager[ContextValueT]]",
|
271 | 267 | value: ContextValueT,
|
272 |
| - ) -> None: |
273 |
| - ... |
| 268 | + ) -> None: ... |
274 | 269 |
|
275 | 270 | @overload
|
276 | 271 | def then_enter_with(
|
277 | 272 | self: "Stub[AsyncGeneratorContextManager[ContextValueT]]",
|
278 | 273 | value: ContextValueT,
|
279 |
| - ) -> None: |
280 |
| - ... |
| 274 | + ) -> None: ... |
281 | 275 |
|
282 | 276 | def then_enter_with(
|
283 | 277 | self: Union[
|
@@ -347,4 +341,4 @@ def delete(self) -> None:
|
347 | 341 | self._core.delete()
|
348 | 342 |
|
349 | 343 |
|
350 |
| -__all__ = ["Decoy", "Stub", "Prop", "matchers", "warnings", "errors"] |
| 344 | +__all__ = ["Decoy", "Prop", "Stub", "errors", "matchers", "warnings"] |
0 commit comments