<h3 dir="auto">Reproducing code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np

np.double(3.0,x=3.1,y=3.2,z=3.4,q=3.14)
np.double(3.0,x=3.1)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>

<span class="pl-s1">np</span>.<span class="pl-en">double</span>(<span class="pl-c1">3.0</span>,<span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-c1">3.1</span>,<span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-c1">3.2</span>,<span class="pl-s1">z</span><span class="pl-c1">=</span><span class="pl-c1">3.4</span>,<span class="pl-s1">q</span><span class="pl-c1">=</span><span class="pl-c1">3.14</span>)
<span class="pl-s1">np</span>.<span class="pl-en">double</span>(<span class="pl-c1">3.0</span>,<span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-c1">3.1</span>)</pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="3.0"><pre class="notranslate"><code class="notranslate">3.0
</code></pre></div>
<p dir="auto">returns</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="np.double(x=3.1)"><pre class="notranslate"><code class="notranslate">np.double(x=3.1)
</code></pre></div>
<p dir="auto">returns</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0.0"><pre class="notranslate"><code class="notranslate">0.0
</code></pre></div>
<h3 dir="auto">Error message:</h3>
<p dir="auto">No error, but too tolerant of keyword arguments</p>

<h3 dir="auto">NumPy/Python version information:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.20.2 3.8.10 (default, May 19 2021, 18:05:58)
[GCC 7.3.0]"><pre class="notranslate"><code class="notranslate">1.20.2 3.8.10 (default, May 19 2021, 18:05:58)
[GCC 7.3.0]
</code></pre></div>
<p dir="auto">Unlike the other scalar types, <code class="notranslate">numpy.float64</code> silently ignores unknown keyword arguments:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [17]: np.__version__
Out[17]: '1.20.0.dev0+f0171ba'

In [18]: np.float64(123, foobar=&quot;plate of shrimp&quot;)
Out[18]: 123.0"><pre class="notranslate"><code class="notranslate">In [17]: np.__version__
Out[17]: '1.20.0.dev0+f0171ba'

In [18]: np.float64(123, foobar="plate of shrimp")
Out[18]: 123.0
</code></pre></div>
<p dir="auto">The other types raise the exception <code class="notranslate">TypeError: function takes at most 1 argument (2 given)</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [19]: np.float32(123, foobar=&quot;plate of shrimp&quot;)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
&lt;ipython-input-19-2f7cf4afa2cb&gt; in &lt;module&gt;
----&gt; 1 np.float32(123, foobar=&quot;plate of shrimp&quot;)

TypeError: function takes at most 1 argument (2 given)

In [20]: np.uint32(123, foobar=&quot;plate of shrimp&quot;)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
&lt;ipython-input-20-8b32fef69395&gt; in &lt;module&gt;
----&gt; 1 np.uint32(123, foobar=&quot;plate of shrimp&quot;)

TypeError: function takes at most 1 argument (2 given)"><pre class="notranslate"><code class="notranslate">In [19]: np.float32(123, foobar="plate of shrimp")
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
&lt;ipython-input-19-2f7cf4afa2cb&gt; in &lt;module&gt;
----&gt; 1 np.float32(123, foobar="plate of shrimp")

TypeError: function takes at most 1 argument (2 given)

In [20]: np.uint32(123, foobar="plate of shrimp")
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
&lt;ipython-input-20-8b32fef69395&gt; in &lt;module&gt;
----&gt; 1 np.uint32(123, foobar="plate of shrimp")

TypeError: function takes at most 1 argument (2 given)
</code></pre></div>