O2-DQ User Interface 1.0.0
Loading...
Searching...
No Matches
ChoicesCompleterList Class Reference
Inheritance diagram for ChoicesCompleterList:

Public Member Functions

def __call__ (self, **kwargs)
 
def __init__ (self, choices)
 

Public Attributes

 choices
 

Detailed Description

For the ChoicesCompleterList package argcomplete,
the TAB key is the class written for autocomplete and validation when an argument can take multiple values.
By default, the argcomplete package has the ChoicesCompleter Class,
which can only validate arguments that take an one value and allows autocomplete with the TAB key.

Args:
    object (list): parserargs choices object as a list

Definition at line 17 of file choicesCompleterList.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  choices 
)

Definition at line 29 of file choicesCompleterList.py.

29 def __init__(self, choices):
30 self.choices = list(choices)
31

Member Function Documentation

◆ __call__()

def __call__ (   self,
**  kwargs 
)

Definition at line 32 of file choicesCompleterList.py.

32 def __call__(self, **kwargs):
33 return self.choices

Member Data Documentation

◆ choices

choices

Definition at line 30 of file choicesCompleterList.py.


The documentation for this class was generated from the following file: