hundreds-breakfast-49010
06/09/2020, 1:33 AMhundreds-breakfast-49010
06/09/2020, 1:34 AM@rule
seems to me to introduce a new, optional function parameterhundreds-breakfast-49010
06/09/2020, 1:34 AMWorkunitControl
hundreds-breakfast-49010
06/09/2020, 1:35 AMhundreds-breakfast-49010
06/09/2020, 1:36 AMhundreds-breakfast-49010
06/09/2020, 1:37 AMhundreds-father-404
06/09/2020, 2:21 AMhundreds-breakfast-49010
06/09/2020, 2:26 AMhundreds-breakfast-49010
06/09/2020, 2:27 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 AMwitty-crayon-22786
06/09/2020, 2:27 AMhundreds-breakfast-49010
06/09/2020, 2:28 AMhundreds-breakfast-49010
06/09/2020, 2:28 AMwitty-crayon-22786
06/09/2020, 2:28 AMwitty-crayon-22786
06/09/2020, 2:29 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 AMhundreds-breakfast-49010
06/09/2020, 2:29 AMhundreds-breakfast-49010
06/09/2020, 2:31 AMwitty-crayon-22786
06/09/2020, 2:31 AMhundreds-breakfast-49010
06/09/2020, 2:31 AMwitty-crayon-22786
06/09/2020, 2:31 AMwitty-crayon-22786
06/09/2020, 2:31 AMhundreds-breakfast-49010
06/09/2020, 2:37 AMhundreds-breakfast-49010
06/09/2020, 2:37 AMwitty-crayon-22786
06/09/2020, 2:38 AMwitty-crayon-22786
06/09/2020, 2:38 AMcpython
nowwitty-crayon-22786
06/09/2020, 2:39 AMwitty-crayon-22786
06/09/2020, 2:39 AMhundreds-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_ofhundreds-breakfast-49010
06/09/2020, 10:12 PMhundreds-breakfast-49010
06/09/2020, 10:13 PM_
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
hundreds-breakfast-49010
06/09/2020, 10:14 PM_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 PMwitty-crayon-22786
06/09/2020, 10:16 PMwitty-crayon-22786
06/09/2020, 10:16 PMwitty-crayon-22786
06/09/2020, 10:16 PMclass FmtResult(WorkunitResult)
(strawname)witty-crayon-22786
06/09/2020, 10:17 PMwitty-crayon-22786
06/09/2020, 10:18 PMwitty-crayon-22786
06/09/2020, 10:19 PMwitty-crayon-22786
06/09/2020, 10:20 PM