Open Kristopher38 opened 1 year ago
inherited-members
which shows inherited members for a class. When applied indiscriminately through sphinx-apidoc
, we get the opposite problem: docs show methods and attributes which should not be there. I did not find a simple way to apply inherited-members
just to Transaction
and Method
. If someone knows Sphinx better than me, go ahead.LEFT
means that left transaction/method is prioritized over the right, RIGHT
is the reverse, UNDEFINED
means that there is no prioritization, just a conflict. I can make a small PR with appropriate comments if you want.I thought it was self-documenting: LEFT means that left transaction/method is prioritized over the right, RIGHT is the reverse
Am I missing some fundamental knowledge? Where did that come from?
Oh... I think I get it. "left" and "right" as in a.add_conflict(b)
- Priority.LEFT
would mean a
> b
, and Priority.RIGHT
the reverse? If so, that wasn't obvious at all! Maybe because I haven't seen this kind of pattern before (?)
Indeed, that's what it means. Nobody opposed this API when it was merged ;) The alternative API would be to add a keyword Boolean parameter to schedule_before
, which says if there is a conflict or not. I don't know if it is any better, and the problem is pure bikeshedding anyway ;)
TransactionBase
isn't present in the docs soadd_conflict
isn't visible there. Possibly more such casespriority
argument toadd_conflict
isn't documented. What does it mean that the priority is left/right/undefined?