diff --git a/yapf/yapflib/subtype_assigner.py b/yapf/yapflib/subtype_assigner.py
index f8c24cd..34391b3 100644
--- a/yapf/yapflib/subtype_assigner.py
+++ b/yapf/yapflib/subtype_assigner.py
@@ -73,7 +73,11 @@ class _SubtypeAssigner(pytree_visitor.PyTreeVisitor):
             self._SetFirstLeafTokenSubtype(child,
                                            format_token.Subtype.DICTIONARY_KEY)
           elif last_was_colon:
-            self._SetSubtypeRec(child, format_token.Subtype.DICTIONARY_VALUE)
+            if pytree_utils.NodeName(child) == 'power':
+              self._SetFirstLeafTokenSubtype(child,
+                                             format_token.Subtype.DICTIONARY_VALUE)
+            else:
+              self._SetSubtypeRec(child, format_token.Subtype.DICTIONARY_VALUE)
         last_was_comma = isinstance(child, pytree.Leaf) and child.value == ','
         last_was_colon = isinstance(child, pytree.Leaf) and child.value == ':'
       self.Visit(child)

Regression in formatting an argument expansion in a dictionary
`{a: b(*c)}` gets formatted to `{a: b( * c)}`

This regression occured in f30c1d26df3449950d95982f17568d03fe4a361f
diff --git a/yapftests/reformatter_test.py b/yapftests/reformatter_test.py
index bd88849..7e35c8b 100644
--- a/yapftests/reformatter_test.py
+++ b/yapftests/reformatter_test.py
@@ -1217,6 +1217,11 @@ format_token.Subtype.NONE))
     uwlines = _ParseAndUnwrap(code)
     self.assertCodeEqual(code, reformatter.Reformat(uwlines))
 
+  def testFunctionCallInDict(self):
+    code = "a = {'a': b(c=d, **e)}\n"
+    uwlines = _ParseAndUnwrap(code)
+    self.assertCodeEqual(code, reformatter.Reformat(uwlines))
+
 
 class BuganizerFixes(ReformatterTest):
 

pip install -e .
parse_log_pytest
pytest
nose pytest
3.9
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
nose==1.3.7
packaging @ file:///croot/packaging_1734472117206/work
pluggy @ file:///croot/pluggy_1733169602837/work
pytest @ file:///croot/pytest_1738938843180/work
tomli @ file:///opt/conda/conda-bld/tomli_1657175507142/work
-e git+https://github.com/google/yapf.git@22c52a696d787ac9e8a45ea70dc6e1cae9b398de#egg=yapf

name: yapf
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - exceptiongroup=1.2.0=py39h06a4308_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - packaging=24.2=py39h06a4308_0
  - pip=25.0=py39h06a4308_0
  - pluggy=1.5.0=py39h06a4308_0
  - pytest=8.3.4=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tomli=2.0.1=py39h06a4308_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - nose==1.3.7
prefix: /opt/conda/envs/yapf

yapftests/reformatter_test.py::BasicReformatterTest::testFunctionCallInDict
yapftests/reformatter_test.py::BasicReformatterTest::testBlankLinesAtEndOfFile yapftests/reformatter_test.py::BasicReformatterTest::testBlankLinesBeforeDecorators yapftests/reformatter_test.py::BasicReformatterTest::testBlankLinesBeforeFunctionsNotInColumnZero yapftests/reformatter_test.py::BasicReformatterTest::testClosingBracketIndent yapftests/reformatter_test.py::BasicReformatterTest::testClosingBracketsInlinedInCall yapftests/reformatter_test.py::BasicReformatterTest::testCommentBeforeFuncDef yapftests/reformatter_test.py::BasicReformatterTest::testCommentBetweenDecorators yapftests/reformatter_test.py::BasicReformatterTest::testComments yapftests/reformatter_test.py::BasicReformatterTest::testCommentsWithContinuationMarkers yapftests/reformatter_test.py::BasicReformatterTest::testContinuationIndent yapftests/reformatter_test.py::BasicReformatterTest::testContinuationMarkers yapftests/reformatter_test.py::BasicReformatterTest::testDictSetGenerator yapftests/reformatter_test.py::BasicReformatterTest::testDictionaryMakerFormatting yapftests/reformatter_test.py::BasicReformatterTest::testDocstringAndMultilineComment yapftests/reformatter_test.py::BasicReformatterTest::testDocstrings yapftests/reformatter_test.py::BasicReformatterTest::testEmptyContainers yapftests/reformatter_test.py::BasicReformatterTest::testEndingWhitespaceAfterSimpleStatement yapftests/reformatter_test.py::BasicReformatterTest::testExcessCharacters yapftests/reformatter_test.py::BasicReformatterTest::testExcessLineCountWithDefaultKeywords yapftests/reformatter_test.py::BasicReformatterTest::testExpressionPenalties yapftests/reformatter_test.py::BasicReformatterTest::testFunctionCallContinuationLine yapftests/reformatter_test.py::BasicReformatterTest::testI18n yapftests/reformatter_test.py::BasicReformatterTest::testI18nNonFormatting yapftests/reformatter_test.py::BasicReformatterTest::testIfConditionalParens yapftests/reformatter_test.py::BasicReformatterTest::testLineDepthOfSingleLineStatement yapftests/reformatter_test.py::BasicReformatterTest::testLineWrapInForExpression yapftests/reformatter_test.py::BasicReformatterTest::testListComprehension yapftests/reformatter_test.py::BasicReformatterTest::testMatchingParenSplittingMatching yapftests/reformatter_test.py::BasicReformatterTest::testMultilineComment yapftests/reformatter_test.py::BasicReformatterTest::testMultilineCommentReformatted yapftests/reformatter_test.py::BasicReformatterTest::testMultilineDocstringAndMultilineComment yapftests/reformatter_test.py::BasicReformatterTest::testMultilineShebang yapftests/reformatter_test.py::BasicReformatterTest::testMultilineString yapftests/reformatter_test.py::BasicReformatterTest::testMultipleUgliness yapftests/reformatter_test.py::BasicReformatterTest::testNoBreakOutsideOfBracket yapftests/reformatter_test.py::BasicReformatterTest::testNoKeywordArgumentBreakage yapftests/reformatter_test.py::BasicReformatterTest::testNoPenaltySplitting yapftests/reformatter_test.py::BasicReformatterTest::testNoQueueSeletionInMiddleOfLine yapftests/reformatter_test.py::BasicReformatterTest::testNoSpaceBetweenUnaryOpAndOpeningParen yapftests/reformatter_test.py::BasicReformatterTest::testNoSpacesBetweenOpeningBracketAndStartingOperator yapftests/reformatter_test.py::BasicReformatterTest::testNoSpacesBetweenSubscriptsAndCalls yapftests/reformatter_test.py::BasicReformatterTest::testNoSplittingAroundTermOperators yapftests/reformatter_test.py::BasicReformatterTest::testNoSplittingWithinSubscriptList yapftests/reformatter_test.py::BasicReformatterTest::testOpeningAndClosingBrackets yapftests/reformatter_test.py::BasicReformatterTest::testRelativeImportStatements yapftests/reformatter_test.py::BasicReformatterTest::testRelaxArraySubscriptAffinity yapftests/reformatter_test.py::BasicReformatterTest::testSimple yapftests/reformatter_test.py::BasicReformatterTest::testSimpleFunctions yapftests/reformatter_test.py::BasicReformatterTest::testSimpleFunctionsWithTrailingComments yapftests/reformatter_test.py::BasicReformatterTest::testSimpleMultilineCode yapftests/reformatter_test.py::BasicReformatterTest::testSimpleMultilineWithComments yapftests/reformatter_test.py::BasicReformatterTest::testSingleComment yapftests/reformatter_test.py::BasicReformatterTest::testSingleLineFunctions yapftests/reformatter_test.py::BasicReformatterTest::testSingleLineIfStatements yapftests/reformatter_test.py::BasicReformatterTest::testSingleLineList yapftests/reformatter_test.py::BasicReformatterTest::testSpaceAfterNotOperator yapftests/reformatter_test.py::BasicReformatterTest::testSplitListWithInterspersedComments yapftests/reformatter_test.py::BasicReformatterTest::testSplitListWithTerminatingComma yapftests/reformatter_test.py::BasicReformatterTest::testSplitStringsIfSurroundedByParens yapftests/reformatter_test.py::BasicReformatterTest::testTrailerOnSingleLine yapftests/reformatter_test.py::BasicReformatterTest::testTrailingCommaAndBracket yapftests/reformatter_test.py::BasicReformatterTest::testTupleCommaBeforeLastParen yapftests/reformatter_test.py::BasicReformatterTest::testUnaryNotOperator yapftests/reformatter_test.py::BasicReformatterTest::testUnaryOpInDictionaryValue yapftests/reformatter_test.py::BuganizerFixes::testB13900309 yapftests/reformatter_test.py::BuganizerFixes::testB14406499 yapftests/reformatter_test.py::BuganizerFixes::testB14468247 yapftests/reformatter_test.py::BuganizerFixes::testB15438132 yapftests/reformatter_test.py::BuganizerFixes::testB15542157 yapftests/reformatter_test.py::BuganizerFixes::testB15597568 yapftests/reformatter_test.py::BuganizerFixes::testB15697268 yapftests/reformatter_test.py::BuganizerFixes::testB15884241 yapftests/reformatter_test.py::BuganizerFixes::testB16572361 yapftests/reformatter_test.py::BuganizerFixes::testB16783631 yapftests/reformatter_test.py::BuganizerFixes::testB17011869 yapftests/reformatter_test.py::BuganizerFixes::testB17133019 yapftests/reformatter_test.py::BuganizerFixes::testB17489866 yapftests/reformatter_test.py::BuganizerFixes::testB17534869 yapftests/reformatter_test.py::BuganizerFixes::testB18255697 yapftests/reformatter_test.py::BuganizerFixes::testB18256666 yapftests/reformatter_test.py::BuganizerFixes::testB18256826 yapftests/reformatter_test.py::BuganizerFixes::testB18257115 yapftests/reformatter_test.py::BuganizerFixes::testB19073499 yapftests/reformatter_test.py::BuganizerFixes::testB19194420 yapftests/reformatter_test.py::BuganizerFixes::testB19287512 yapftests/reformatter_test.py::BuganizerFixes::testB19353268 yapftests/reformatter_test.py::BuganizerFixes::testB19372573 yapftests/reformatter_test.py::BuganizerFixes::testB19377034 yapftests/reformatter_test.py::BuganizerFixes::testB19547210 yapftests/reformatter_test.py::BuganizerFixes::testB19626808 yapftests/reformatter_test.py::BuganizerFixes::testB20073838 yapftests/reformatter_test.py::BuganizerFixes::testB20128830 yapftests/reformatter_test.py::BuganizerFixes::testB20562732 yapftests/reformatter_test.py::BuganizerFixes::testB20605036 yapftests/reformatter_test.py::BuganizerFixes::testB20813997 yapftests/reformatter_test.py::TestsForPEP8Style::testAlignClosingBracketWithVisualIndentation yapftests/reformatter_test.py::TestsForPEP8Style::testContinuedNonOudentedLine yapftests/reformatter_test.py::TestsForPEP8Style::testIndent4 yapftests/reformatter_test.py::TestsForPEP8Style::testNoBlankBetweenClassAndDef yapftests/reformatter_test.py::TestsForPEP8Style::testSingleWhiteBeforeTrailingComment yapftests/reformatter_test.py::TestsForPEP8Style::testSpaceBetweenEndingCommandAndClosingBracket yapftests/reformatter_test.py::TestsForPEP8Style::testSplittingSemicolonStatements yapftests/reformatter_test.py::TestsForPEP8Style::testWrappingPercentExpressions yapftests/reformatter_test.py::TestingNotInParameters::test_notInParams yapftests/reformatter_test.py::TestsForPython3Code::testAnnotations yapftests/reformatter_test.py::TestsForPython3Code::testExecAsNonKeyword yapftests/reformatter_test.py::TestsForPython3Code::testKeywordOnlyArgSpecifier
yapf/yapflib/subtype_assigner.py
yapf/yapflib/subtype_assigner.py