Browse Source
We were indiscriminately accessing the `__annotations__` which could cause issues if the function had been wrapped by some functions such as `functools.partial`. This just checks that the access is safe before doing it. Suggested-by: jarret <@jarret> Signed-off-by: Christian Decker <@cdecker>travis-debug
Christian Decker
5 years ago
1 changed files with 3 additions and 2 deletions
Loading…
Reference in new issue