Skip to content

Commit 929aa9c

Browse files
committed
Remove type hints in decorator
1 parent 34f57bb commit 929aa9c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/unittest_extensions/decorator.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
from typing import Callable, TypeVar, TypeAlias
2-
3-
TestClass = TypeVar("TestClass")
4-
TestMethod: TypeAlias = Callable[[TestClass], None]
5-
6-
7-
def args(kwargs) -> TestMethod:
1+
def args(kwargs):
82
"""
93
Decorate test methods to define arguments for your subject.
104
"""
115

12-
def wrapper(method) -> TestMethod:
6+
def wrapper(method):
137
method._subjectKwargs = kwargs
148
return method
159

0 commit comments

Comments
 (0)