From 4c9636647408603f226fdf96c1711912dd478c88 Mon Sep 17 00:00:00 2001 From: Quigley Malcolm Date: Wed, 15 May 2024 17:34:58 -0700 Subject: [PATCH] [TIDY FIRST] Remove conditional `typing_extensions` import for python < 3.8 (#134) Remove conditional `typing_extensions` import for python < 3.8 This repository doesn't currently, and never has, supported python versions less than 3.8. The conditional import being removed here is a holdover from when this code was cut out of dbt-core (which no longer supports python less than 3.8 either). --- dbt_common/events/base_types.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dbt_common/events/base_types.py b/dbt_common/events/base_types.py index 5ff6e235..78b03682 100644 --- a/dbt_common/events/base_types.py +++ b/dbt_common/events/base_types.py @@ -10,10 +10,7 @@ from dbt_common.invocation import get_invocation_id -if sys.version_info >= (3, 8): - from typing import Protocol -else: - from typing_extensions import Protocol +from typing import Protocol # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #