class_docstr: Provides functionality to topologically sort a graph of hashable nodes
docstr: Return ``True`` if more progress can be made and ``False`` otherwise.
  
  Progress can be made if cycles do not block the resolution and either there
  are still nodes ready that haven't yet been returned by "get_ready" or the
  number of nodes marked "done" is less than the number that have been returned
  by "get_ready".
  
  Raises ValueError if called without calling "prepare" previously.
docstr_tok: ["Return","``","True","``","if","more","progress","can","be","made","and","``","False","``","otherwise",".","Progress","can","be","made","if","cycles","do","not","block","the","resolution","and","either","there","are","still","nodes","ready","that","have","n't","yet","been","returned","by","``","get_ready","''","or","the","number","of","nodes","marked","``","done","''","is","less","than","the","number","that","have","been","returned","by","``","get_ready","''",".","Raises","ValueError","if","called","without","calling","``","prepare","''","previously","."]
code: def is_active(self):
      """Return ``True`` if more progress can be made and ``False`` otherwise.
  
      Progress can be made if cycles do not block the resolution and either there
      are still nodes ready that haven't yet been returned by "get_ready" or the
      number of nodes marked "done" is less than the number that have been returned
      by "get_ready".
  
      Raises ValueError if called without calling "prepare" previously.
      """
      if self._ready_nodes is None:
          raise ValueError("prepare() must be called first")
      return self._nfinished < self._npassedout or bool(
          self._ready_nodes
      )
  
file_path: catboost/contrib/tools/python3/src/Lib/graphlib.py
imports: from types import GenericAlias
label_desc: Use image node_id 6 for calling the TopologicalSorter obj's underlying member method code with example usage: obj.is_active() and returns: unknown