Skip to content

Commit b179821

Browse files
committed
fix: warnings in docs build
1 parent e175f87 commit b179821

File tree

3 files changed

+475
-2
lines changed

3 files changed

+475
-2
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
# Add any paths that contain custom static files (such as style sheets) here,
179179
# relative to this directory. They are copied after the builtin static files,
180180
# so a file named "default.css" will overwrite the builtin "default.css".
181-
html_static_path = ["_static"]
181+
# html_static_path = ["_static"]
182182

183183
# Add any extra paths that contain custom files (such as robots.txt or
184184
# .htaccess) here, relative to this directory. These files are copied

docs/inheritance.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
Inheritance Examples
22
====================
33

4+
45
Create interfaces from inheritance relationships
56
------------------------------------------------
6-
.. note:: If you're using `AsyncSession`, please check the section `Eager Loading & Using with AsyncSession`_.
7+
8+
.. note::
9+
If you're using `AsyncSession`, please check the chapter `Eager Loading & Using with AsyncSession`_.
10+
711
SQLAlchemy has excellent support for class inheritance hierarchies.
812
These hierarchies can be represented in your GraphQL schema by means
913
of interfaces_. Much like ObjectTypes, Interfaces in
@@ -111,8 +115,10 @@ class to the Schema constructor via the `types=` argument:
111115
112116
See also: `Graphene Interfaces <https://docs.graphene-python.org/en/latest/types/interfaces/>`_
113117

118+
114119
Eager Loading & Using with AsyncSession
115120
----------------------------------------
121+
116122
When querying the base type in multi-table inheritance or joined table inheritance, you can only directly refer to polymorphic fields when they are loaded eagerly.
117123
This restricting is in place because AsyncSessions don't allow implicit async operations such as the loads of the joined tables.
118124
To load the polymorphic fields eagerly, you can use the `with_polymorphic` attribute of the mapper args in the base model:

0 commit comments

Comments
 (0)