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 dbbdc22 commit 3840e58Copy full SHA for 3840e58
sphinx/util/typing.py
@@ -425,7 +425,7 @@ def _stringify_literal_arg(arg: Any, mode: str) -> str:
425
if isenumattribute(arg):
426
enum_cls = arg.__class__
427
# 'MyEnum.member' in 'smart' mode, otherwise 'module.MyEnum.member'
428
- prefix = '' if mode == 'smart' else enum_cls.__module__
+ prefix = '' if mode == 'smart' else f'{enum_cls.__module__}.'
429
return f'{prefix}.{enum_cls.__qualname__}.{arg.name}'
430
return repr(arg)
431
0 commit comments