Skip to content

Commit 2cade77

Browse files
Merge pull request #446 from xuganyu96/type-hint-conflict-with-sqlalchemy
Delay type annotation eval for compatibility with SQLAlchemy 1.4
2 parents 8bd8f21 + 14ded7a commit 2cade77

File tree

21 files changed

+42
-0
lines changed

21 files changed

+42
-0
lines changed

pyathena/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import annotations
3+
24
import datetime
35
from typing import TYPE_CHECKING, FrozenSet, Type
46

pyathena/arrow/async_cursor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import annotations
3+
24
import logging
35
from concurrent.futures import Future
46
from multiprocessing import cpu_count

pyathena/arrow/converter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import annotations
3+
24
import logging
35
from builtins import isinstance
46
from copy import deepcopy

pyathena/arrow/result_set.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import annotations
3+
24
import logging
35
from typing import (
46
TYPE_CHECKING,

pyathena/arrow/util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import annotations
3+
24
from typing import TYPE_CHECKING, Any, Dict, Tuple, cast
35

46
if TYPE_CHECKING:

pyathena/async_cursor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import annotations
3+
24
import logging
35
from concurrent.futures import Future
46
from concurrent.futures.thread import ThreadPoolExecutor

pyathena/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import annotations
3+
24
import logging
35
import sys
46
import time

pyathena/connection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import annotations
3+
24
import logging
35
import os
46
import time

pyathena/converter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import annotations
3+
24
import binascii
35
import json
46
import logging

pyathena/fastparquet/util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import annotations
3+
24
from typing import TYPE_CHECKING, Any, Dict, Tuple
35

46
if TYPE_CHECKING:

0 commit comments

Comments
 (0)