diff options
author | Daniil Baturin <daniil@vyos.io> | 2022-08-30 16:36:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-30 16:36:42 +0100 |
commit | d5cda147d722252bccbe96c5cacec75e3ba1ee14 (patch) | |
tree | cb0ac08269f2034c95df3832a94b5035a8ab02ec | |
parent | 2f8ad342390cdbef98ab3ecef088fe31b7967974 (diff) | |
parent | 8792e13f80f4150fbe2dae5d8eedf7f40703411e (diff) | |
download | vyos-1x-d5cda147d722252bccbe96c5cacec75e3ba1ee14.tar.gz vyos-1x-d5cda147d722252bccbe96c5cacec75e3ba1ee14.zip |
Merge pull request #1509 from zdc/T4657-sagitta
opmode: T4657: fixed opmode with return type hints
-rw-r--r-- | python/vyos/opmode.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/vyos/opmode.py b/python/vyos/opmode.py index 628f7b3a2..7e3545c87 100644 --- a/python/vyos/opmode.py +++ b/python/vyos/opmode.py @@ -105,6 +105,8 @@ def run(module): subparser = subparsers.add_parser(function_name, help=functions[function_name].__doc__) type_hints = typing.get_type_hints(functions[function_name]) + if 'return' in type_hints: + del type_hints['return'] for opt in type_hints: th = type_hints[opt] |