0
class AlgDispenser:

    # super class to output an algorithm out of a selection of algorithms
    def __init__(self, *algorithms: Algorithm):
        super().__init__()
        self._algs: list[Algorithm] = []
        self._activeAlg: int = 0
        for i in range(0, len(algorithms)):
            self._algs.append(algorithms[i])
            
    def addAlgorithm(self, alg: Algorithm) ->AlgDispenser:
        # builder pattern
        self._algs.append(alg)
        return  self

->AlgDispenser: shows me an unresolved err for some reason

rv.kvetch
  • 9,940
  • 3
  • 24
  • 53

0 Answers0