diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2019-07-01 22:17:59 +0200 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2019-07-01 22:17:59 +0200 |
commit | c62ff2b770cc6810fa47d8f7c5c545ff6768d089 (patch) | |
tree | cfed91532275f5968eba8f2901f604add1d18ba8 | |
parent | Fix syntax error. (diff) | |
download | glucometerutils-c62ff2b770cc6810fa47d8f7c5c545ff6768d089.tar glucometerutils-c62ff2b770cc6810fa47d8f7c5c545ff6768d089.tar.gz glucometerutils-c62ff2b770cc6810fa47d8f7c5c545ff6768d089.tar.bz2 glucometerutils-c62ff2b770cc6810fa47d8f7c5c545ff6768d089.tar.lz glucometerutils-c62ff2b770cc6810fa47d8f7c5c545ff6768d089.tar.xz glucometerutils-c62ff2b770cc6810fa47d8f7c5c545ff6768d089.tar.zst glucometerutils-c62ff2b770cc6810fa47d8f7c5c545ff6768d089.zip |
-rw-r--r-- | glucometerutils/common.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/glucometerutils/common.py b/glucometerutils/common.py index 726cdb2..a258e4b 100644 --- a/glucometerutils/common.py +++ b/glucometerutils/common.py @@ -126,11 +126,11 @@ class MeterInfo: the device. It can include hardware and software version. native_unit: One of the Unit values to identify the meter native unit. """ - model = attr.ib() # Text - serial_number = attr.ib(default='N/A') # Text - version_info = attr.ib(default=()) # Sequence[Text] + model = attr.ib() # type: Text + serial_number = attr.ib(default='N/A') # type: Text + version_info = attr.ib(default=()) # type: Sequence[Text] native_unit = attr.ib( - default=Unit.MG_DL, validator=attr.validators.in_(Unit)) # Unit + default=Unit.MG_DL, validator=attr.validators.in_(Unit)) # type: Unit def __str__(self): version_information_string = 'N/A' |