parameters: (self, composed_instances, model_args)
return_statement: return discarded_args
docstring: Gathers the args that were discarded by configuration.discard_unknown_keys
docstring_summary: Gathers the args that were discarded by configuration.discard_unknown_keys
docstring_tokens: Gathers the args that were discarded by configuration . discard_unknown_keys
function: def get_discarded_args(self, composed_instances, model_args):
      """
      Gathers the args that were discarded by configuration.discard_unknown_keys
      """
      model_arg_keys = model_args.keys()
      discarded_args = set()
      # arguments passed to self were already converted to python names
      # before __init__ was called
      for instance in composed_instances:
          if instance.__class__ in self._composed_schemas['allOf']:
              try:
                  keys = instance.to_dict().keys()
                  discarded_keys = model_args - keys
                  discarded_args.update(discarded_keys)
              except Exception:
                  # allOf integer schema will throw exception
                  pass
          else:
              try:
                  all_keys = set(model_to_dict(instance, serialize=False).keys())
                  js_keys = model_to_dict(instance, serialize=True).keys()
                  all_keys.update(js_keys)
                  discarded_keys = model_arg_keys - all_keys
                  discarded_args.update(discarded_keys)
              except Exception:
                  # allOf integer schema will throw exception
                  pass
      return discarded_args
function_tokens: def get_discarded_args ( self , composed_instances , model_args ) : model_arg_keys = model_args . keys ( ) discarded_args = set ( ) # arguments passed to self were already converted to python names # before __init__ was called for instance in composed_instances : if instance . __class__ in self . _composed_schemas [ 'allOf' ] : try : keys = instance . to_dict ( ) . keys ( ) discarded_keys = model_args - keys discarded_args . update ( discarded_keys ) except Exception : # allOf integer schema will throw exception pass else : try : all_keys = set ( model_to_dict ( instance , serialize = False ) . keys ( ) ) js_keys = model_to_dict ( instance , serialize = True ) . keys ( ) all_keys . update ( js_keys ) discarded_keys = model_arg_keys - all_keys discarded_args . update ( discarded_keys ) except Exception : # allOf integer schema will throw exception pass return discarded_args