Repaired an import for "typing" that is not supported in Python 3.4, which
is the bottom version supported by SQLAlchemy 1.3.
Fixes: #6168
Change-Id: I282c04be0dd40e2b6d5dc3c7f7dad65746d60008
--- /dev/null
+.. change::
+ :tags: bug, general
+ :tickets: 6168
+
+ Repaired an import for "typing" that is not supported in Python 3.4, which
+ is the bottom version supported by SQLAlchemy 1.3.
# as the __traceback__ object creates a cycle
del exception, replace_context, from_, with_traceback
- from typing import TYPE_CHECKING
+ if py35:
+ from typing import TYPE_CHECKING
+ else:
+ TYPE_CHECKING = False
def u(s):
return s