summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.com>2019-09-24 20:43:32 +0200
committerDiego Elio Pettenò <flameeyes@flameeyes.com>2019-09-24 20:43:32 +0200
commit5dfc913d91fda85119ad2cd54861d2e1c3b5ca17 (patch)
tree2ea6c4fe897e31d778c9d7847dff721933d62663
parentfreestyle: fix return type for empty log. (diff)
downloadglucometerutils-5dfc913d91fda85119ad2cd54861d2e1c3b5ca17.tar
glucometerutils-5dfc913d91fda85119ad2cd54861d2e1c3b5ca17.tar.gz
glucometerutils-5dfc913d91fda85119ad2cd54861d2e1c3b5ca17.tar.bz2
glucometerutils-5dfc913d91fda85119ad2cd54861d2e1c3b5ca17.tar.lz
glucometerutils-5dfc913d91fda85119ad2cd54861d2e1c3b5ca17.tar.xz
glucometerutils-5dfc913d91fda85119ad2cd54861d2e1c3b5ca17.tar.zst
glucometerutils-5dfc913d91fda85119ad2cd54861d2e1c3b5ca17.zip
-rw-r--r--glucometerutils/common.py6
-rw-r--r--glucometerutils/support/freestyle.py6
-rw-r--r--glucometerutils/support/hiddevice.py6
-rw-r--r--glucometerutils/support/serial.py6
4 files changed, 4 insertions, 20 deletions
diff --git a/glucometerutils/common.py b/glucometerutils/common.py
index 8b41320..e7be7ec 100644
--- a/glucometerutils/common.py
+++ b/glucometerutils/common.py
@@ -6,11 +6,7 @@
import datetime
import enum
import textwrap
-
-try:
- from typing import Optional, Sequence
-except ImportError:
- pass
+from typing import Optional, Sequence
import attr
diff --git a/glucometerutils/support/freestyle.py b/glucometerutils/support/freestyle.py
index c7dbdb9..d61842e 100644
--- a/glucometerutils/support/freestyle.py
+++ b/glucometerutils/support/freestyle.py
@@ -12,11 +12,7 @@ import csv
import datetime
import logging
import re
-
-try:
- from typing import AnyStr, Iterator, List, Optional, Text, Tuple
-except ImportError:
- pass
+from typing import AnyStr, Iterator, List, Optional, Text, Tuple
import construct
diff --git a/glucometerutils/support/hiddevice.py b/glucometerutils/support/hiddevice.py
index ecf989b..b44e5c7 100644
--- a/glucometerutils/support/hiddevice.py
+++ b/glucometerutils/support/hiddevice.py
@@ -6,11 +6,7 @@
import logging
import os
-
-try:
- from typing import BinaryIO, Optional, Text
-except ImportError:
- pass
+from typing import BinaryIO, Optional, Text
from glucometerutils import exceptions
diff --git a/glucometerutils/support/serial.py b/glucometerutils/support/serial.py
index 4566e54..6067cf7 100644
--- a/glucometerutils/support/serial.py
+++ b/glucometerutils/support/serial.py
@@ -5,11 +5,7 @@
"""
import logging
-
-try:
- from typing import Optional, Text
-except ImportError:
- pass
+from typing import Optional, Text
import serial