Skip to content

Commit 1a59098

Browse files
committed
fix: fix name argument type anotation in Decoy.mock
1 parent aa5ca1d commit 1a59098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

decoy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def mock(self, *, func: FuncT) -> FuncT:
3030

3131
# TODO(mc, 2021-11-14): make `name` required for specless mocks in v2.0
3232
@overload
33-
def mock(self, *, name: Optional[Any] = None, is_async: bool = False) -> Any:
33+
def mock(self, *, name: Optional[str] = None, is_async: bool = False) -> Any:
3434
...
3535

3636
def mock(

0 commit comments

Comments
 (0)