Skip to content

Commit d4bb96a

Browse files
committed
Deploying to gh-pages from @ 8f1b19a 🚀
1 parent a657be8 commit d4bb96a

File tree

527 files changed

+582
-669
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

527 files changed

+582
-669
lines changed

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 1184bc8ea9d2504cfa107dd50035f740
3+
config: 48848cac10621dc0aadb8affc5072d0a
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

_sources/library/collections.abc.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ the required methods (unless those methods have been set to
8787

8888
class E:
8989
def __iter__(self): ...
90-
def __next__(next): ...
90+
def __next__(self): ...
9191

9292
.. doctest::
9393

_sources/library/typing.rst.txt

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2581,33 +2581,32 @@ Functions and decorators
25812581

25822582
.. function:: reveal_type(obj, /)
25832583

2584-
Reveal the inferred static type of an expression.
2584+
Ask a static type checker to reveal the inferred type of an expression.
25852585

25862586
When a static type checker encounters a call to this function,
2587-
it emits a diagnostic with the type of the argument. For example::
2587+
it emits a diagnostic with the inferred type of the argument. For example::
25882588

25892589
x: int = 1
25902590
reveal_type(x) # Revealed type is "builtins.int"
25912591

25922592
This can be useful when you want to debug how your type checker
25932593
handles a particular piece of code.
25942594

2595-
The function returns its argument unchanged, which allows using
2596-
it within an expression::
2595+
At runtime, this function prints the runtime type of its argument to
2596+
:data:`sys.stderr` and returns the argument unchanged (allowing the call to
2597+
be used within an expression)::
25972598

2598-
x = reveal_type(1) # Revealed type is "builtins.int"
2599+
x = reveal_type(1) # prints "Runtime type is int"
2600+
print(x) # prints "1"
2601+
2602+
Note that the runtime type may be different from (more or less specific
2603+
than) the type statically inferred by a type checker.
25992604

26002605
Most type checkers support ``reveal_type()`` anywhere, even if the
26012606
name is not imported from ``typing``. Importing the name from
2602-
``typing`` allows your code to run without runtime errors and
2607+
``typing``, however, allows your code to run without runtime errors and
26032608
communicates intent more clearly.
26042609

2605-
At runtime, this function prints the runtime type of its argument to stderr
2606-
and returns it unchanged::
2607-
2608-
x = reveal_type(1) # prints "Runtime type is int"
2609-
print(x) # prints "1"
2610-
26112610
.. versionadded:: 3.11
26122611

26132612
.. decorator:: dataclass_transform(*, eq_default=True, order_default=False, \

_sources/reference/datamodel.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2806,7 +2806,7 @@ through the object's keys; for sequences, it should iterate through the values.
28062806
the accepted keys should be integers and slice objects. Note that the
28072807
special interpretation of negative indexes (if the class wishes to emulate a
28082808
:term:`sequence` type) is up to the :meth:`__getitem__` method. If *key* is
2809-
of an inappropriate type, :exc:`TypeError` may be raised; if of a value
2809+
of an inappropriate type, :exc:`TypeError` may be raised; if *key* is a value
28102810
outside the set of indexes for the sequence (after any special
28112811
interpretation of negative values), :exc:`IndexError` should be raised. For
28122812
:term:`mapping` types, if *key* is missing (not in the container),

about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ <h3>瀏覽</h3>
308308
<br />
309309
<br />
310310

311-
最後更新於 Dec 20, 2023 (01:35 UTC)。
311+
最後更新於 Dec 21, 2023 (02:27 UTC)。
312312
<a href="/bugs.html">Found a bug</a>?
313313
<br />
314314

bugs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ <h2>說明文件的錯誤<a class="headerlink" href="#documentation-bugs" title=
224224
</section>
225225
<section id="getting-started-contributing-to-python-yourself">
226226
<span id="contributing-to-python"></span><h2>開始讓自己貢獻 Python<a class="headerlink" href="#getting-started-contributing-to-python-yourself" title="Link to this heading"></a></h2>
227-
<p>除了只是回報您所發現的錯誤之外,同樣也歡迎您提交修正它們的修補程式 (patch)。您可以在 <a class="reference external" href="https://mail.python.org/mailman3/lists/core-mentorship.python.org/">Python 開發者指南</a>中找到如何開始修補 Python 的更多資訊。如果您有任何問題,<a class="reference external" href="https://devguide.python.org/">核心導師郵寄清單</a>是一個友善的地方,您可以在那裡得到,關於 Python 修正錯誤的過程中,所有問題的答案。</p>
227+
<p>除了只是回報您所發現的錯誤之外,同樣也歡迎您提交修正它們的修補程式 (patch)。您可以在 <a class="reference external" href="https://devguide.python.org/">Python 開發者指南</a>中找到如何開始修補 Python 的更多資訊。如果您有任何問題,<a class="reference external" href="https://mail.python.org/mailman3/lists/core-mentorship.python.org/">核心導師郵寄清單</a>是一個友善的地方,您可以在那裡得到,關於 Python 修正錯誤的過程中,所有問題的答案。</p>
228228
</section>
229229
</section>
230230

@@ -344,7 +344,7 @@ <h3>瀏覽</h3>
344344
<br />
345345
<br />
346346

347-
最後更新於 Dec 20, 2023 (01:35 UTC)。
347+
最後更新於 Dec 21, 2023 (02:27 UTC)。
348348
<a href="/bugs.html">Found a bug</a>?
349349
<br />
350350

c-api/abstract.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ <h3>瀏覽</h3>
318318
<br />
319319
<br />
320320

321-
最後更新於 Dec 20, 2023 (01:35 UTC)。
321+
最後更新於 Dec 21, 2023 (02:27 UTC)。
322322
<a href="/bugs.html">Found a bug</a>?
323323
<br />
324324

c-api/allocation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ <h3>瀏覽</h3>
332332
<br />
333333
<br />
334334

335-
最後更新於 Dec 20, 2023 (01:35 UTC)。
335+
最後更新於 Dec 21, 2023 (02:27 UTC)。
336336
<a href="/bugs.html">Found a bug</a>?
337337
<br />
338338

c-api/apiabiversion.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ <h3>瀏覽</h3>
364364
<br />
365365
<br />
366366

367-
最後更新於 Dec 20, 2023 (01:35 UTC)。
367+
最後更新於 Dec 21, 2023 (02:27 UTC)。
368368
<a href="/bugs.html">Found a bug</a>?
369369
<br />
370370

c-api/arg.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ <h3>瀏覽</h3>
875875
<br />
876876
<br />
877877

878-
最後更新於 Dec 20, 2023 (01:35 UTC)。
878+
最後更新於 Dec 21, 2023 (02:27 UTC)。
879879
<a href="/bugs.html">Found a bug</a>?
880880
<br />
881881

0 commit comments

Comments
 (0)