mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 18:27:18 +00:00
don't remove add_log but deprecate it.
This commit is contained in:
parent
c69239bb90
commit
dc8ff24685
17 changed files with 104 additions and 54 deletions
|
|
@ -13,7 +13,7 @@ known = set()
|
|||
|
||||
def category(name: str, desc: str, hooks: list[type[hooks.Hook]]) -> None:
|
||||
all_params = [
|
||||
list(inspect.signature(hook.__init__).parameters.values())[1:] for hook in hooks
|
||||
list(inspect.signature(hook.__init__, eval_str=True).parameters.values())[1:] for hook in hooks
|
||||
]
|
||||
|
||||
# slightly overengineered, but this was fun to write. ¯\_(ツ)_/¯
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue