We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1978f0 commit 1a74380Copy full SHA for 1a74380
flask_combo_jsonapi/data_layers/alchemy.py
@@ -1,4 +1,8 @@
1
"""This module is a CRUD interface between resource managers and the sqlalchemy ORM"""
2
+from typing import TYPE_CHECKING
3
+
4
+if TYPE_CHECKING:
5
+ from sqlalchemy.orm import Session as SessionType
6
7
from sqlalchemy.orm.exc import NoResultFound
8
from sqlalchemy.orm.collections import InstrumentedList
@@ -33,6 +37,8 @@
33
37
34
38
class SqlalchemyDataLayer(BaseDataLayer):
35
39
"""Sqlalchemy data layer"""
40
+ if TYPE_CHECKING:
41
+ session: "SessionType"
36
42
43
def __init__(self, kwargs):
44
"""Initialize an instance of SqlalchemyDataLayer
0 commit comments