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.
2 parents 15df408 + 6905fe9 commit 5100b07Copy full SHA for 5100b07
sphinx/util/typing.py
@@ -457,8 +457,8 @@ def _stringify_literal_arg(arg: Any, mode: _StringifyMode) -> str:
457
if isenumattribute(arg):
458
enum_cls = arg.__class__
459
# 'MyEnum.member' in 'smart' mode, otherwise 'module.MyEnum.member'
460
- prefix = '' if mode == 'smart' else enum_cls.__module__
461
- return f'{prefix}.{enum_cls.__qualname__}.{arg.name}'
+ prefix = '' if mode == 'smart' else f'{enum_cls.__module__}.'
+ return f'{prefix}{enum_cls.__qualname__}.{arg.name}'
462
return repr(arg)
463
464
0 commit comments