Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue36984

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:typing docs "versionadded" is inaccurate for many attributes
Type:Stage:resolved
Components:DocumentationVersions:Python 3.8
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To: docs@pythonNosy List: Anthony Sottile, docs@python, levkivskyi
Priority:normalKeywords:patch

Created on2019-05-21 05:20 byAnthony Sottile, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 13457mergedAnthony Sottile,2019-05-21 05:22
PR 13737mergedmiss-islington,2019-06-02 00:14
Messages (1)
msg342978 -(view)Author: Anthony Sottile (Anthony Sottile)*Date: 2019-05-21 05:20
expanding onhttps://bugs.python.org/issue36983the docs are also a bit out of date in placesI'm not sure how to document something that appeared in two versions, but I'll leave that part to review.Using data generated / collected inhttps://github.com/asottile/flake8-typing-imports via this script:https://github.com/asottile/flake8-typing-imports/blob/master/bin/build-generatedand then analyzed with this script:from flake8_typing_imports import SYMBOLSALL = set().union(*(v for _, v in SYMBOLS))for k in sorted(ALL):    state = False    for i, (v, ks) in enumerate(SYMBOLS):        if state is False and k in ks:            print(f'{k}: new in {v}')            state = True        elif state is True and k not in ks:            print(f'=> {k}: removed in {v}')            state = FalseI've found the following:$ python3 t.py | grep -v 'new in 3\.5\.0'AsyncContextManager: new in 3.5.4=> AsyncContextManager: removed in 3.6.0AsyncContextManager: new in 3.6.2AsyncGenerator: new in 3.6.1AsyncIterable: new in 3.5.2AsyncIterator: new in 3.5.2Awaitable: new in 3.5.2ChainMap: new in 3.5.4=> ChainMap: removed in 3.6.0ChainMap: new in 3.6.1ClassVar: new in 3.5.3Collection: new in 3.6.0ContextManager: new in 3.5.4Coroutine: new in 3.5.3Counter: new in 3.5.4=> Counter: removed in 3.6.0Counter: new in 3.6.1DefaultDict: new in 3.5.2Deque: new in 3.5.4=> Deque: removed in 3.6.0Deque: new in 3.6.1ForwardRef: new in 3.7.0GenericMeta: new in 3.5.4=> GenericMeta: removed in 3.6.0GenericMeta: new in 3.6.1=> GenericMeta: removed in 3.7.0NewType: new in 3.5.2NoReturn: new in 3.5.4=> NoReturn: removed in 3.6.0NoReturn: new in 3.6.2OrderedDict: new in 3.7.2TYPE_CHECKING: new in 3.5.2Text: new in 3.5.2Type: new in 3.5.2
History
DateUserActionArgs
2022-04-11 14:59:15adminsetgithub: 81165
2019-06-02 00:25:05levkivskyisetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-06-02 00:14:56miss-islingtonsetpull_requests: +pull_request13620
2019-06-01 11:47:09cheryl.sabellasetnosy: +levkivskyi
2019-05-21 05:22:57Anthony Sottilesetkeywords: +patch
stage: patch review
pull_requests: +pull_request13366
2019-05-21 05:20:35Anthony Sottilecreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp