From c62ff2b770cc6810fa47d8f7c5c545ff6768d089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Mon, 1 Jul 2019 21:17:59 +0100 Subject: Fix type annotations. --- glucometerutils/common.py | 8 ++++---- 1 file 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' -- cgit v1.2.3