Coverage for /home/runner/work/coxbuild/coxbuild/src/coxbuild/hooks.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

7 statements  

1from dataclasses import dataclass 

2from typing import Any, Callable 

3 

4 

5@dataclass 

6class Hook: 

7 """Hook.""" 

8 hook: Callable 

9 

10 def __call__(self, *args: Any, **kwds: Any) -> Any: 

11 return self.hook(*args, **kwds)