comparison sat/bridge/bridge_constructor/base_constructor.py @ 3538:c605a0d6506f

bridge (constructor/base_constructor): add `args_no_default` to `completion`
author Goffi <goffi@goffi.org>
date Thu, 03 Jun 2021 15:21:43 +0200
parents 7550ae9cfbac
children 524856bd7b19
comparison
equal deleted inserted replaced
3537:f9a5b810f14d 3538:c605a0d6506f
47 CORE_DEST = None 47 CORE_DEST = None
48 FRONTEND_FORMATS = None 48 FRONTEND_FORMATS = None
49 FRONTEND_TEMPLATE = None 49 FRONTEND_TEMPLATE = None
50 FRONTEND_DEST = None 50 FRONTEND_DEST = None
51 51
52 # set to False if your bridge need only core 52 # set to False if your bridge needs only core
53 FRONTEND_ACTIVATE = True 53 FRONTEND_ACTIVATE = True
54 54
55 def __init__(self, bridge_template, options): 55 def __init__(self, bridge_template, options):
56 self.bridge_template = bridge_template 56 self.bridge_template = bridge_template
57 self.args = options 57 self.args = options
282 "name": section, 282 "name": section,
283 # arguments with default values 283 # arguments with default values
284 "args": self.getArguments( 284 "args": self.getArguments(
285 function["sig_in"], name=arg_doc, default=default 285 function["sig_in"], name=arg_doc, default=default
286 ), 286 ),
287 "args_no_default": self.getArguments(function["sig_in"], name=arg_doc),
287 } 288 }
288 289
289 extend_method = getattr( 290 extend_method = getattr(
290 self, "{}_completion_{}".format(side, function["type"]) 291 self, "{}_completion_{}".format(side, function["type"])
291 ) 292 )