Fixup test bitswap. mypy

This commit is contained in:
Alex Mykyta
2024-12-18 22:04:12 -08:00
parent 11d9f65dff
commit e0295ae526
7 changed files with 43 additions and 34 deletions

View File

@@ -10,7 +10,7 @@ if TYPE_CHECKING:
# TODO: implement sw=w1 "write once" fields
class _OnWrite(NextStateConditional):
onwritetype = None
onwritetype = None # type: OnWriteType
def is_match(self, field: 'FieldNode') -> bool:
return field.is_sw_writable and field.get_property('onwrite') == self.onwritetype