From 335c13bc63a665834d9f58f7da1234f471d656b7 Mon Sep 17 00:00:00 2001 From: Damian Owsianny Date: Tue, 26 Nov 2024 12:45:57 +0100 Subject: [PATCH] Fix breaking compatibility with Python 3.8 --- .changes/unreleased/Fixes-20241126-125237.yaml | 7 +++++++ dbt/adapters/trino/impl.py | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .changes/unreleased/Fixes-20241126-125237.yaml diff --git a/.changes/unreleased/Fixes-20241126-125237.yaml b/.changes/unreleased/Fixes-20241126-125237.yaml new file mode 100644 index 00000000..96dee414 --- /dev/null +++ b/.changes/unreleased/Fixes-20241126-125237.yaml @@ -0,0 +1,7 @@ +kind: Fixes +body: Fix breaking compatibility with Python 3.8 +time: 2024-11-26T12:52:37.426245+01:00 +custom: + Author: damian3031 + Issue: "" + PR: "452" diff --git a/dbt/adapters/trino/impl.py b/dbt/adapters/trino/impl.py index 3de84cbd..858947f9 100644 --- a/dbt/adapters/trino/impl.py +++ b/dbt/adapters/trino/impl.py @@ -1,5 +1,5 @@ from dataclasses import dataclass -from typing import Dict, Optional +from typing import Dict, List, Optional import agate from dbt.adapters.base.impl import AdapterConfig, ConstraintSupport @@ -53,7 +53,7 @@ def __init__(self, config, mp_context) -> None: self.connections = self.ConnectionManager(config, mp_context, self.behavior) @property - def _behavior_flags(self) -> list[BehaviorFlag]: + def _behavior_flags(self) -> List[BehaviorFlag]: return [ { # type: ignore "name": "require_certificate_validation",