]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-139842: Clarify `__module__` description in typing.rst (#139863)
authorTimothée Mazzucotelli <dev@pawamoy.fr>
Thu, 9 Oct 2025 17:53:42 +0000 (19:53 +0200)
committerGitHub <noreply@github.com>
Thu, 9 Oct 2025 17:53:42 +0000 (18:53 +0100)
Doc/library/typing.rst

index cfeeb19efbdf8305d5cec7c0e401584ef830cd82..279ae3ef820069acdd098dd65616356334357167 100644 (file)
@@ -2269,7 +2269,7 @@ without the dedicated syntax, as documented below.
 
    .. attribute:: __module__
 
-      The module in which the type alias was defined::
+      The name of the module in which the type alias was defined::
 
          >>> type Alias = int
          >>> Alias.__module__
@@ -2449,7 +2449,7 @@ types.
 
    .. attribute:: __module__
 
-      The module in which the new type is defined.
+      The name of the module in which the new type is defined.
 
    .. attribute:: __name__