Skip to content

Commit 5100b07

Browse files
committed
Merge branch 'cleanup/util-2c-typing-style' into cleanup/util-2d-type-guards
2 parents 15df408 + 6905fe9 commit 5100b07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinx/util/typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,8 @@ def _stringify_literal_arg(arg: Any, mode: _StringifyMode) -> str:
457457
if isenumattribute(arg):
458458
enum_cls = arg.__class__
459459
# '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}'
460+
prefix = '' if mode == 'smart' else f'{enum_cls.__module__}.'
461+
return f'{prefix}{enum_cls.__qualname__}.{arg.name}'
462462
return repr(arg)
463463

464464

0 commit comments

Comments
 (0)