mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 08:56:04 -04:00
Add type hints to E2E handler. (#9232)
This finishes adding type hints to the `synapse.handlers` module.
This commit is contained in:
parent
34efb4c604
commit
a78016dadf
7 changed files with 198 additions and 177 deletions
|
@ -791,7 +791,7 @@ def tag_args(func):
|
|||
|
||||
@wraps(func)
|
||||
def _tag_args_inner(*args, **kwargs):
|
||||
argspec = inspect.getargspec(func)
|
||||
argspec = inspect.getfullargspec(func)
|
||||
for i, arg in enumerate(argspec.args[1:]):
|
||||
set_tag("ARG_" + arg, args[i])
|
||||
set_tag("args", args[len(argspec.args) :])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue