Skip to content

Commit de83b25

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] Fix doc build for Python 3.11+ (#8583)
Reviewed By: ahmadsharif1 Differential Revision: D61331605 fbshipit-source-id: fff78be25c1a5fd78561f5a5c05d5d7dc2b52aeb
1 parent f47d71d commit de83b25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def inject_weight_metadata(app, what, name, obj, options, lines):
383383
f"``weights='DEFAULT'`` or ``weights='{str(list(obj)[0]).split('.')[1]}'``.",
384384
]
385385

386-
if obj.__doc__ != "An enumeration.":
386+
if obj.__doc__ is not None and obj.__doc__ != "An enumeration.":
387387
# We only show the custom enum doc if it was overridden. The default one from Python is "An enumeration"
388388
lines.append("")
389389
lines.append(obj.__doc__)

0 commit comments

Comments
 (0)