This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: NewType __module__ attr default value
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.11, Python 3.10
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: kj, lukasz.langa, miss-islington, uriyyo
Priority: normal Keywords: patch

Created on 2021-07-28 10:06 by uriyyo, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 27406 merged uriyyo, 2021-07-28 10:12
PR 27477 merged miss-islington, 2021-07-30 12:56
Messages (3)
msg398365 - (view) Author: Yurii Karabas (uriyyo) * (Python triager) Date: 2021-07-28 10:06
This issue related to https://bugs.python.org/issue44353

By default `__module__` attribute of a `NewType` is set to "typing" but in other typing classes it set to "__main__".
msg398546 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-07-30 12:56
New changeset 7b975f81e4dba70a42c6279539a7fcfe4211b4c0 by Yurii Karabas in branch 'main':
bpo-44761: Change default value of NewType __module__ attr (GH-27406)
https://github.com/python/cpython/commit/7b975f81e4dba70a42c6279539a7fcfe4211b4c0
msg398549 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-07-30 13:48
New changeset 56122b0bba7a9e2e3ec672a6c22bfdd7ecf08cbe by Miss Islington (bot) in branch '3.10':
bpo-44761: Change default value of NewType __module__ attr (GH-27406) (GH-27477)
https://github.com/python/cpython/commit/56122b0bba7a9e2e3ec672a6c22bfdd7ecf08cbe
History
Date User Action Args
2022-04-11 14:59:48adminsetgithub: 88924
2021-07-30 13:48:23lukasz.langasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-07-30 13:48:14lukasz.langasetmessages: + msg398549
2021-07-30 12:56:39lukasz.langasetnosy: + lukasz.langa
messages: + msg398546
2021-07-30 12:56:31miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request25995
2021-07-28 11:42:11uriyyosettitle: NewType __module__ name default value -> NewType __module__ attr default value
2021-07-28 10:12:11uriyyosetkeywords: + patch
stage: patch review
pull_requests: + pull_request25939
2021-07-28 10:06:21uriyyosettitle: NewType __module__ name -> NewType __module__ name default value
2021-07-28 10:06:10uriyyocreate