<s> """<STR_LIT>""" <EOL> from nuitka . PythonVersions import python_version <EOL> class CodeObjectSpec : <EOL> def __init__ ( self , code_name , code_kind , arg_names , kw_only_count , has_starlist , <EOL> has_stardict ) : <EOL> assert type ( has_starlist ) is bool <EOL> assert type ( has_stardict ) is bool <EOL> self . code_name = code_name <EOL> self . code_kind = code_kind <EOL> self . arg_names = tuple ( arg_names ) <EOL> for arg_name in arg_names : <EOL> assert type ( arg_name ) is str <EOL> self . kw_only_count = kw_only_count <EOL> self . has_starlist = has_starlist <EOL> self . has_stardict = has_stardict <EOL> self . local_names = ( ) <EOL> def __repr__ ( self ) : <EOL> return """<STR_LIT>""" % self . getDetails ( ) <EOL> def getDetails ( self ) : <EOL> result = { <EOL> "<STR_LIT>" : self . code_name , <EOL> "<STR_LIT>" : self . code_kind , <EOL> "<STR_LIT>" : self . arg_names , <EOL> "<STR_LIT>" : self . local_names , <EOL> "<STR_LIT>" : self . kw_only_count , <EOL> "<STR_LIT>" : self . has_starlist , <EOL> "<STR_LIT>" : self . has_stardict , <EOL> } <EOL> if python_version >= <NUM_LIT> : <EOL> result [ "<STR_LIT>" ] = self . kw_only_count <EOL> return result <EOL> def getKind ( self ) : <EOL> return self . code_kind <EOL> def updateLocalNames ( self , local_names ) : <EOL> """<STR_LIT>""" <EOL> self . local_names = tuple ( <EOL> local_name <EOL> for local_name in <EOL> local_names <EOL> if local_name not in self . arg_names <EOL> ) <EOL> def getVarNames ( self ) : <EOL> return self . arg_names + self . local_names <EOL> def getArgumentCount ( self ) : <EOL> return len ( self . arg_names ) - ( <NUM_LIT:1> if self . has_stardict else <NUM_LIT:0> ) - ( <NUM_LIT:1> if self . has_starlist else <NUM_LIT:0> ) - self . kw_only_count <EOL> def getKwOnlyParameterCount ( self ) : <EOL> return self . kw_only_count <EOL> def getCodeObjectName ( self ) : <EOL> return self . code_name <EOL> def hasStarListArg ( self ) : <EOL> return self . has_starlist <EOL> def hasStarDictArg ( self ) : <EOL> return self . has_stardict </s>
