summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-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