From 60a9316b0b44ed99068637409c35c6acf8bbcf0f Mon Sep 17 00:00:00 2001 From: James Ward Date: Fri, 3 Nov 2023 01:22:58 -0400 Subject: [PATCH] chore: omit print when typing can't pull in also updates the order for typing imports so the busio I2C import (only used for typing) isn't pulled in at all if we can't use typing --- adafruit_ms8607.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adafruit_ms8607.py b/adafruit_ms8607.py index 18b7658..b6fe40a 100644 --- a/adafruit_ms8607.py +++ b/adafruit_ms8607.py @@ -40,11 +40,11 @@ try: """Needed for type annotations""" - from busio import I2C from typing import Tuple, Any + from busio import I2C except ImportError: - print("Couldnt import") + pass _MS8607_HSENSOR_ADDR = const(0x40) #