class_docstr: A ConstrainedFunction class used to hold constrained single-objective functions.
class_docstr_tok: ["A","ConstrainedFunction","class","used","to","hold","constrained","single-objective","functions","."]
code: def constraints(self, constraints: List[callable]) -> None:
      if not isinstance(constraints, list):
          raise e.TypeError("`constraints` should be a list")
  
      self._constraints = constraints
  
file_path: opytimizer/opytimizer/functions/constrained.py
imports: from typing import List
  import numpy
  import opytimizer.utils.exception
  from opytimizer.core import Function
  from opytimizer.utils import logging
label_desc: Use image node_id 3 for calling the ConstrainedFunction obj's underlying member method code with example usage: obj.constraints(constraints) without return types