mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
Default theme's DEFAULT_PARAMETER should fallback to IDENTIFIER, just like in Darcula. This fixes issues where an external highlighter returns a DEFAULT_PARAMETER highlighting, but a wrong highlighting is applied instead. This happens because looking up the key in the scheme finds the empty DEFAULT_PARAMETER value with null colors, thus we fallback to the other highlighter's colors, which may be incorrect. GitOrigin-RevId: ea4fb9fccf4f164c677d1eb5ce09638c0c402b49
1 line
1.3 KiB
HTML
1 line
1.3 KiB
HTML
<span style="color:#000080;font-weight:bold;">def </span><span style="color:#000000;">ones</span><span style="">(</span><span style="color:#000000;">shape</span><span style="">: </span><span style="color:#000000;"><span style="color:#000080;"><a href="psi_element://#typename#int">int</a></span><span style=""> | </span>Iterable<span style="">[</span><span style="color:#000080;"><a href="psi_element://#typename#int">int</a></span><span style="">]</span></span><span style="">,</span> <span style="color:#000000;">dtype</span><span style="">: </span><span style="color:#000000;"><span style="color:#000080;"><a href="psi_element://#typename#object">object</a></span><span style=""> | </span><span style="color:#000080;font-weight:bold;">None</span></span><span style=""> = </span><span style="color:#000080;font-weight:bold;">None</span><span style="">,</span> <span style="color:#000000;">order</span><span style="">: </span><span style="color:#000000;"><span style="color:#000080;"><a href="psi_element://#typename#str">str</a></span><span style=""> | </span><span style="color:#000080;font-weight:bold;">None</span></span><span style=""> = </span><span style="color:#008000;font-weight:bold;">'C'</span><span style="">)</span> -> <span style="color:#000000;"><a href="psi_element://#typename#numpy.core.multiarray.ndarray">ndarray</a></span> |