Refactor database.py in scan_system.py
The following discussions from !384 (merged) should be addressed:
-
@nbg-rwagensveld started a discussion: Is there a reason that this is handled as a
dict
and not as a dataclass? -
@nbg-rwagensveld started a discussion: It is a little bit weird to leave out the
t
inresult
. -
@nbg-rwagensveld started a discussion: Would it be possible to change the
resul
variable to a dataclass? This way we can add some type safety by returning a defined type (dataclass representingresul
).
Edited by Filip Jensen