Open rmoehn opened 6 years ago
There are several places in the code where a Context is constructed from datastore contents like this:
Context
all_successors = [Context(args[0], db, args[1], parent=args[2]) for args in answer_successors + workspace_successors]
Replace these with something more readable.
This includes the args[0] in the procedure _can_advance_promise in context.py.
args[0]
_can_advance_promise
context.py
The same goes for hypertext.Subquestion. Make it a namedtuple or a Python 3.7 dataclass.
hypertext.Subquestion
namedtuple
dataclass
The construction of Workspaces is similarly repetitive.
Workspace
There are several places in the code where a
Context
is constructed from datastore contents like this:Replace these with something more readable.
This includes the
args[0]
in the procedure_can_advance_promise
incontext.py
.