hundreds-breakfast-49010
06/09/2020, 1:33 AM@rule
seems to me to introduce a new, optional function parameterWorkunitControl
hundreds-father-404
06/09/2020, 2:21 AMhundreds-breakfast-49010
06/09/2020, 2:26 AMdef my_rule(a: Snapshot, b: WorkunitControl) -> Digest
would work exactly the same as def my_rule(a:Snapshot) -> Digest
witty-crayon-22786
06/09/2020, 2:27 AMhundreds-breakfast-49010
06/09/2020, 2:28 AMwitty-crayon-22786
06/09/2020, 2:28 AMA sketch of this might involve adding a Python interface that return types could implement that would allow them to affect their level. For example:andLintResult
would implement the interface in order to render failing targets asTestResult
.error
hundreds-breakfast-49010
06/09/2020, 2:29 AMwitty-crayon-22786
06/09/2020, 2:31 AMhundreds-breakfast-49010
06/09/2020, 2:31 AMwitty-crayon-22786
06/09/2020, 2:31 AMhundreds-breakfast-49010
06/09/2020, 2:37 AMwitty-crayon-22786
06/09/2020, 2:38 AMcpython
nowhundreds-breakfast-49010
06/09/2020, 10:12 PMPyType
is a subclass of another `PyType`: https://docs.rs/cpython/0.5.0/cpython/struct.PyType.html#method.is_subtype_of_
properties on the python object, I think. e.g. any python object that has _new_workunit_level
and is also a subclass of some python class ModifyWorkunit
_new_workunit_level
, which has the (remote) risk of a name collision with a property a user cares aboutwitty-crayon-22786
06/09/2020, 10:15 PMclass FmtResult(WorkunitResult)
(strawname)