Skip to content

Commit 3840e58

Browse files
committed
fixup
1 parent dbbdc22 commit 3840e58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx/util/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def _stringify_literal_arg(arg: Any, mode: str) -> str:
425425
if isenumattribute(arg):
426426
enum_cls = arg.__class__
427427
# 'MyEnum.member' in 'smart' mode, otherwise 'module.MyEnum.member'
428-
prefix = '' if mode == 'smart' else enum_cls.__module__
428+
prefix = '' if mode == 'smart' else f'{enum_cls.__module__}.'
429429
return f'{prefix}.{enum_cls.__qualname__}.{arg.name}'
430430
return repr(arg)
431431

0 commit comments

Comments
 (0)