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: `typing.Annotated` one type argument usage is not covered in tests
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: kj, miss-islington, sobolevn
Priority: normal Keywords: patch

Created on 2022-01-18 13:32 by sobolevn, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 30663 merged sobolevn, 2022-01-18 13:34
PR 30691 merged miss-islington, 2022-01-19 15:28
PR 30692 merged miss-islington, 2022-01-19 15:30
Messages (4)
msg410862 - (view) Author: Nikita Sobolev (sobolevn) * (Python triager) Date: 2022-01-18 13:32
This condition is not covered: https://github.com/python/cpython/blob/bdf2ab1887a2edfb089a3c2a1590cf1e84ea0048/Lib/typing.py#L1674-L1677

I propose to add a test for it, because `Annotated[int]` is invalid.

PR is on its way :)
msg410870 - (view) Author: Ken Jin (kj) * (Python committer) Date: 2022-01-18 14:44
New changeset 32398294fb3fcf4ee74da54722fd0221c4e6cb74 by Nikita Sobolev in branch 'main':
bpo-46424: [typing] cover `Annotation[arg]` invalid usage in tests (GH-30663)
https://github.com/python/cpython/commit/32398294fb3fcf4ee74da54722fd0221c4e6cb74
msg410963 - (view) Author: miss-islington (miss-islington) Date: 2022-01-19 15:54
New changeset baf26d07a634b0ea3ff052716bdeaee985b3a3a9 by Miss Islington (bot) in branch '3.10':
bpo-46424: [typing] cover `Annotation[arg]` invalid usage in tests (GH-30663)
https://github.com/python/cpython/commit/baf26d07a634b0ea3ff052716bdeaee985b3a3a9
msg410965 - (view) Author: miss-islington (miss-islington) Date: 2022-01-19 16:00
New changeset 331378dffc334c1f05ab3152c87f46cd9155e169 by Miss Islington (bot) in branch '3.9':
[3.9] bpo-46424: [typing] cover `Annotation[arg]` invalid usage in tests (GH-30663) (GH-30692)
https://github.com/python/cpython/commit/331378dffc334c1f05ab3152c87f46cd9155e169
History
Date User Action Args
2022-04-11 14:59:54adminsetgithub: 90582
2022-01-19 16:00:00miss-islingtonsetmessages: + msg410965
2022-01-19 15:54:25miss-islingtonsetmessages: + msg410963
2022-01-19 15:30:43miss-islingtonsetpull_requests: + pull_request28890
2022-01-19 15:28:30miss-islingtonsetnosy: + miss-islington

pull_requests: + pull_request28889
2022-01-18 15:51:15sobolevnsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2022-01-18 14:44:17kjsetmessages: + msg410870
2022-01-18 13:34:24sobolevnsetkeywords: + patch
stage: patch review
pull_requests: + pull_request28864
2022-01-18 13:32:17sobolevncreate