<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ouyy2</title>
    <description>The latest articles on DEV Community by ouyy2 (@ouyy2).</description>
    <link>https://dev.to/ouyy2</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1024946%2F54a1fcd1-d6a8-44ff-be37-eae4b2276f4d.png</url>
      <title>DEV Community: ouyy2</title>
      <link>https://dev.to/ouyy2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ouyy2"/>
    <language>en</language>
    <item>
      <title>How to specify tuple contents' type without knowing tuple's size for function parameter?</title>
      <dc:creator>ouyy2</dc:creator>
      <pubDate>Sat, 11 Feb 2023 17:20:27 +0000</pubDate>
      <link>https://dev.to/ouyy2/how-to-specify-tuple-contents-type-without-knowing-tuples-size-for-function-parameter-2b8l</link>
      <guid>https://dev.to/ouyy2/how-to-specify-tuple-contents-type-without-knowing-tuples-size-for-function-parameter-2b8l</guid>
      <description>&lt;p&gt;Hi, I'd like to specify a parameter in function as tuple whose contents are int type and I don't know tuple's size in advance. But when I code like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def func(t: tuple[int]):
    pass
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;which may specify the size of t to 1.&lt;br&gt;
I'd like to know how to resolve this question for not knowing the size of t when I define the function?&lt;/p&gt;

&lt;p&gt;Thanks a lot.&lt;/p&gt;

</description>
      <category>python</category>
    </item>
  </channel>
</rss>
