Closed alexrudd2 closed 5 months ago
(I'm trying pyright and it seems to be stricter than mypy)
pyright
mypy
Since #1638 it has not been possible to pass a bytearray to diag_query_data.
bytearray
diag_query_data
Note:
>>> msg = bytearray() >>> type(msg) <class 'bytearray'> >>> isinstance(msg, bytes) False
Also, re-enable DiagnasticStatusResponse enconding test, although it doesn't actually test much, ha.
Yeah, it's clear nobody has used those functions in years (ever?), so it's a safe starting point to experiment (again) with type checks,
(I'm trying
pyright
and it seems to be stricter thanmypy
)Since #1638 it has not been possible to pass a
bytearray
todiag_query_data
.Note:
Also, re-enable DiagnasticStatusResponse enconding test, although it doesn't actually test much, ha.