Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typing.py upgrades #72742

Closed
gvanrossum opened this issue Oct 29, 2016 · 47 comments
Closed

typing.py upgrades #72742

gvanrossum opened this issue Oct 29, 2016 · 47 comments
Labels
3.7 (EOL) end of life

Comments

@gvanrossum
Copy link
Member

BPO 28556
Nosy @gvanrossum, @ned-deily, @ambv, @ilevkivskyi, @JelleZijlstra, @Mariatta, @miss-islington
PRs
  • bpo-28556: Update to typing: treat subscripted generics as proxies #265
  • [3.6] bpo-28556: Update to typing: treat subscripted generics as proxies (#265) #268
  • [3.5] bpo-28556: Update to typing: treat subscripted generics as proxies (#265) #269
  • bpo-28556: Fix regression that sneaked into recent typing updates #270
  • bpo-28556: Routine updates to typing #1366
  • [3.6] bpo-28556: Routine updates to typing (GH-1366) #1416
  • [3.5] bpo-28556: Routine updates to typing (GH-1366) #1417
  • bpo-28556: Updates to typing module #2076
  • [3.6] bpo-28556: Updates to typing module (GH-2076) #2087
  • [3.5] bpo-28556: Updates to typing module (GH-2076) #2088
  • bpo-28556: Minor updates to typing module #3550
  • [3.6] bpo-28556: Minor updates to typing module (GH-3550) #3558
  • bpo-28556: typing.get_type_hints: better globalns for classes and modules #3582
  • [3.6] bpo-28556: typing.get_type_hints: better globalns for classes and modules (GH-3582) #3583
  • [bpo-28556] Minor fixes for typing module #4710
  • [3.6] [bpo-28556] Minor fixes for typing module (GH-4710) #4713
  • bpo-28556: Minor fixes for typing module #6732
  • [3.7] bpo-28556: Minor fixes for typing module (GH-6732) #6735
  • bpo-28556: Fix a bug in Generic.__new__ #6758
  • [3.6] bpo-28556: Minor fixes for typing module (GH-6732) #6759
  • bpo-28556: Don't simplify unions at runtime #6841
  • [3.7] bpo-28556: Don't simplify unions at runtime (GH-6841) #6979
  • bpo-28556: Clarify that Type[SomeTypeVar] is legal in typing docs #9585
  • [3.7] bpo-28556: Clarify that Type[SomeTypeVar] is legal (GH-9585) #9590
  • [3.6] bpo-28556: Clarify that Type[SomeTypeVar] is legal (GH-9585) #9591
  • bpo-28556: Add a regression test to typing #15396
  • [3.8] bpo-28556: Add a regression test to typing (GH-15396) #15398
  • bpo-28556: Update the opening note in typing docs #16204
  • [3.8] bpo-28556: Update the opening note in typing docs (GH-16204) #16205
  • [3.7] bpo-28556: Update the opening note in typing docs (GH-16204) #16206
  • bpo-28556: Remove another mention of metaclass of Generic in typing docs #16743
  • [3.8] bpo-28556: Remove another mention of metaclass of Generic in typing docs (GH-16743) #16750
  • [3.7] bpo-28556: Remove another mention of metaclass of Generic in typing docs (GH-16743) #16751
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-05-02.20:25:19.282>
    created_at = <Date 2016-10-29.15:46:49.379>
    labels = ['3.7']
    title = 'typing.py upgrades'
    updated_at = <Date 2021-05-02.20:25:19.280>
    user = 'https://github.com/gvanrossum'

    bugs.python.org fields:

    activity = <Date 2021-05-02.20:25:19.280>
    actor = 'JelleZijlstra'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-05-02.20:25:19.282>
    closer = 'JelleZijlstra'
    components = []
    creation = <Date 2016-10-29.15:46:49.379>
    creator = 'gvanrossum'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 28556
    keywords = ['patch']
    message_count = 47.0
    messages = ['279680', '279682', '279696', '279700', '280453', '280870', '281226', '281317', '285699', '285739', '286038', '286039', '286040', '286137', '286149', '290406', '290407', '290412', '290433', '290434', '290435', '292789', '292920', '292921', '295662', '295672', '295673', '302131', '302134', '302196', '302209', '307621', '307624', '316301', '316303', '317064', '317066', '350215', '350220', '352587', '352588', '352589', '354592', '354593', '354594', '354690', '392722']
    nosy_count = 8.0
    nosy_names = ['gvanrossum', 'ned.deily', 'lukasz.langa', 'python-dev', 'levkivskyi', 'JelleZijlstra', 'Mariatta', 'miss-islington']
    pr_nums = ['265', '268', '269', '270', '1366', '1416', '1417', '2076', '2087', '2088', '3550', '3558', '3582', '3583', '4710', '4713', '6732', '6735', '6758', '6759', '6841', '6979', '9585', '9590', '9591', '15396', '15398', '16204', '16205', '16206', '16743', '16750', '16751']
    priority = 'normal'
    resolution = 'out of date'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue28556'
    versions = ['Python 3.5', 'Python 3.6', 'Python 3.7']

    @gvanrossum
    Copy link
    Member Author

    Over at https://github.com/python/typeshed we have a number of big changes in store. I'm eager to get these into 3.6, so I'm merging them in now, in time for 3.6b3. (Recall that PEP-484 and typing.py remain provisional until 3.7 rolls around.)

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Oct 29, 2016

    New changeset a47b07d0aba0 by Guido van Rossum in branch '3.5':
    Issue bpo-28556: updates to typing.py
    https://hg.python.org/cpython/rev/a47b07d0aba0

    New changeset d2b5c3bfa2b5 by Guido van Rossum in branch '3.6':
    Issue bpo-28556: updates to typing.py (3.5->3.6)
    https://hg.python.org/cpython/rev/d2b5c3bfa2b5

    New changeset 2c75b13ccf82 by Guido van Rossum in branch 'default':
    Issue bpo-28556: updates to typing.py (3.6->3.7)
    https://hg.python.org/cpython/rev/2c75b13ccf82

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Oct 29, 2016

    New changeset 94010653379c by Guido van Rossum in branch '3.5':
    Issue bpo-28556: updates to typing.py (fix copy, deepcopy, pickle)
    https://hg.python.org/cpython/rev/94010653379c

    New changeset 465b345559ea by Guido van Rossum in branch '3.6':
    Issue bpo-28556: updates to typing.py (fix copy, deepcopy, pickle) (3.5->3.6)
    https://hg.python.org/cpython/rev/465b345559ea

    New changeset f23f435494f1 by Guido van Rossum in branch 'default':
    Issue bpo-28556: updates to typing.py (fix copy, deepcopy, pickle) (3.6->3.7)
    https://hg.python.org/cpython/rev/f23f435494f1

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Oct 29, 2016

    New changeset 0201a87d773d by Guido van Rossum in branch '3.5':
    Issue bpo-28556: updates to typing.py (add Coroutine, prohibit GenericT)
    https://hg.python.org/cpython/rev/0201a87d773d

    New changeset 2c2fec17247d by Guido van Rossum in branch '3.6':
    Issue bpo-28556: updates to typing.py (add Coroutine, prohibit GenericT) (3.5->3.6)
    https://hg.python.org/cpython/rev/2c2fec17247d

    New changeset fe842efbe1ed by Guido van Rossum in branch 'default':
    Issue bpo-28556: updates to typing.py (add Coroutine, prohibit GenericT) (3.6->3.7)
    https://hg.python.org/cpython/rev/fe842efbe1ed

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Nov 9, 2016

    New changeset 9c0df5f51baa by Guido van Rossum in branch '3.5':
    Issue bpo-28556: More typing.py updates from upstream.
    https://hg.python.org/cpython/rev/9c0df5f51baa

    New changeset 9e65bc305a24 by Guido van Rossum in branch '3.6':
    Issue bpo-28556: More typing.py updates from upstream. (3.5->3.6)
    https://hg.python.org/cpython/rev/9e65bc305a24

    New changeset 00e386ac7b95 by Guido van Rossum in branch 'default':
    Issue bpo-28556: More typing.py updates from upstream. (3.6->3.7)
    https://hg.python.org/cpython/rev/00e386ac7b95

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Nov 15, 2016

    New changeset da2ac103d326 by Guido van Rossum in branch '3.5':
    Issue bpo-28556: Allow keyword syntax for NamedTuple (Ivan Levkivskyi) (upstream #321)
    https://hg.python.org/cpython/rev/da2ac103d326

    New changeset 38ec88a4e282 by Guido van Rossum in branch '3.6':
    Issue bpo-28556: Allow keyword syntax for NamedTuple (Ivan Levkivskyi) (upstream #321) (3.5->3.6)
    https://hg.python.org/cpython/rev/38ec88a4e282

    New changeset a3de2d0f49ea by Guido van Rossum in branch 'default':
    Issue bpo-28556: Allow keyword syntax for NamedTuple (Ivan Levkivskyi) (upstream #321) (3.6->3.7)
    https://hg.python.org/cpython/rev/a3de2d0f49ea

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Nov 19, 2016

    New changeset 1e49abb03e0f by Guido van Rossum in branch '3.5':
    Issue bpo-28556: two more small upstream changes by Ivan Levkivskyi (#329, #330)
    https://hg.python.org/cpython/rev/1e49abb03e0f

    New changeset cdddf4ee0e00 by Guido van Rossum in branch '3.6':
    Issue bpo-28556: two more small upstream changes by Ivan Levkivskyi (#329, #330) (3.5->3.6)
    https://hg.python.org/cpython/rev/cdddf4ee0e00

    New changeset 1465baaccd84 by Guido van Rossum in branch 'default':
    Issue bpo-28556: two more small upstream changes by Ivan Levkivskyi (#329, #330) (3.6->3.7)
    https://hg.python.org/cpython/rev/1465baaccd84

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Nov 21, 2016

    New changeset 75c7bc2c1ad8 by Guido van Rossum in branch '3.5':
    Issue bpo-28556: upstream improvements to docstrings and error messages by Ivan Levkivskyi (#331)
    https://hg.python.org/cpython/rev/75c7bc2c1ad8

    New changeset 294525aac5eb by Guido van Rossum in branch '3.6':
    Issue bpo-28556: upstream improvements to docstrings and error messages by Ivan Levkivskyi (#331) (3.5->3.6)
    https://hg.python.org/cpython/rev/294525aac5eb

    New changeset 30f154d9abf0 by Guido van Rossum in branch 'default':
    Issue bpo-28556: upstream improvements to docstrings and error messages by Ivan Levkivskyi (#331) (3.6->3.7)
    https://hg.python.org/cpython/rev/30f154d9abf0

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jan 18, 2017

    New changeset 1a9e12a852b2 by Guido van Rossum in branch '3.5':
    Issue bpo-28556: merge 5 more typing changes from upstream (#340, #344, #348, #349, #350)
    https://hg.python.org/cpython/rev/1a9e12a852b2

    New changeset fd889884fe08 by Guido van Rossum in branch '3.6':
    Issue bpo-28556: merge 5 more typing changes from upstream (#340, #344, #348, #349, #350) (3.5->3.6)
    https://hg.python.org/cpython/rev/fd889884fe08

    New changeset 794dad4b849f by Guido van Rossum in branch 'default':
    Issue bpo-28556: merge 5 more typing changes from upstream (#340, #344, #348, #349, #350) (3.6->3.7)
    https://hg.python.org/cpython/rev/794dad4b849f

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jan 18, 2017

    New changeset 59829d7b7838 by Guido van Rossum in branch '3.5':
    Issue bpo-28556: allow default values in class form of NamedTuple -- Jelle Zijlstra
    https://hg.python.org/cpython/rev/59829d7b7838

    New changeset 2159f36ccd6b by Guido van Rossum in branch '3.6':
    Issue bpo-28556: allow default values in class form of NamedTuple -- Jelle Zijlstra (3.5->3.6)
    https://hg.python.org/cpython/rev/2159f36ccd6b

    New changeset f0e1c49233ff by Guido van Rossum in branch 'default':
    Issue bpo-28556: allow default values in class form of NamedTuple -- Jelle Zijlstra (3.6->3.7)
    https://hg.python.org/cpython/rev/f0e1c49233ff

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jan 23, 2017

    New changeset 7bf6b4fe2c3c by Guido van Rossum in branch '3.5':
    Issue bpo-28556: various style fixes for typing.py
    https://hg.python.org/cpython/rev/7bf6b4fe2c3c

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jan 23, 2017

    New changeset f100619e7137 by Guido van Rossum in branch '3.5':
    Issue bpo-28556: Allow defining methods in NamedTuple class syntax (#362)
    https://hg.python.org/cpython/rev/f100619e7137

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jan 23, 2017

    New changeset 41277771755d by Guido van Rossum in branch '3.6':
    Issue bpo-28556: various style fixes for typing.py (3.5->3.6)
    https://hg.python.org/cpython/rev/41277771755d

    New changeset a7e69479ee22 by Guido van Rossum in branch 'default':
    Issue bpo-28556: various style fixes for typing.py (3.6->3.7)
    https://hg.python.org/cpython/rev/a7e69479ee22

    New changeset ba272f947c40 by Guido van Rossum in branch '3.6':
    Issue bpo-28556: Allow defining methods in NamedTuple class syntax (#362) (3.5->3.6)
    https://hg.python.org/cpython/rev/ba272f947c40

    New changeset 69c5b800df86 by Guido van Rossum in branch 'default':
    Issue bpo-28556: Allow defining methods in NamedTuple class syntax (#362) (3.6->3.7)
    https://hg.python.org/cpython/rev/69c5b800df86

    @vadmium
    Copy link
    Member

    vadmium commented Jan 24, 2017

    ERROR: test_annotation_usage_with_methods (test.test_typing.NamedTupleTests)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/home/proj/python/cpython/Lib/test/test_typing.py", line 2058, in test_annotation_usage_with_methods
        self.assertEquals(XMeth(1).double(), 2)
      File "/home/proj/python/cpython/Lib/unittest/case.py", line 1311, in deprecated_func
        DeprecationWarning, 2)
    DeprecationWarning: Please use assertEqual instead.

    @ilevkivskyi
    Copy link
    Member

    Thank you Martin!
    Fixed this upstream python/typing#365

    @Mariatta
    Copy link
    Member

    New changeset bc33cd4 by Mariatta in branch '3.5':
    [3.5] bpo-28556: Update to typing: treat subscripted generics as proxies (GH-265) (GH-269)
    bc33cd4

    @Mariatta
    Copy link
    Member

    New changeset bea9d2f by Mariatta in branch '3.6':
    [3.6] bpo-28556: Update to typing: treat subscripted generics as proxies (GH-265) (GH-268)
    bea9d2f

    @Mariatta
    Copy link
    Member

    New changeset 365cb5b by Mariatta (Ivan Levkivskyi) in branch 'master':
    bpo-28556: Fix regression that sneaked into recent typing updates (GH-270)
    365cb5b

    @Mariatta
    Copy link
    Member

    New changeset 0230e64 by Mariatta in branch '3.6':
    bpo-28556: Various updates to typing (#28) (#77)
    0230e64

    @Mariatta
    Copy link
    Member

    New changeset 9c5684e by Mariatta in branch '3.5':
    bpo-28556: Various updates to typing (#28) (#78)
    9c5684e

    @Mariatta
    Copy link
    Member

    New changeset b692dc8 by Mariatta (Ivan Levkivskyi) in branch 'master':
    bpo-28556: Various updates to typing (#28)
    b692dc8

    @Mariatta
    Copy link
    Member

    Mariatta commented May 2, 2017

    New changeset f06e021 by Mariatta (Ivan Levkivskyi) in branch 'master':
    bpo-28556: Routine updates to typing (bpo-1366)
    f06e021

    @Mariatta Mariatta added the 3.7 (EOL) end of life label May 3, 2017
    @Mariatta
    Copy link
    Member

    Mariatta commented May 3, 2017

    New changeset 4b15e45 by Mariatta in branch '3.5':
    [3.5] bpo-28556: Routine updates to typing (GH-1366) (bpo-1417)
    4b15e45

    @Mariatta
    Copy link
    Member

    Mariatta commented May 3, 2017

    New changeset e612c28 by Mariatta in branch '3.6':
    [3.6] bpo-28556: Routine updates to typing (GH-1366) (bpo-1416)
    e612c28

    @gvanrossum
    Copy link
    Member Author

    New changeset 29fda8d by Guido van Rossum (Ivan Levkivskyi) in branch 'master':
    bpo-28556: Updates to typing module (bpo-2076)
    29fda8d

    @Mariatta
    Copy link
    Member

    New changeset 8d15b19 by Mariatta in branch '3.6':
    bpo-28556: Updates to typing module (GH-2076) (GH-2087)
    8d15b19

    @Mariatta
    Copy link
    Member

    New changeset ea8b348 by Mariatta in branch '3.5':
    bpo-28556: Updates to typing module (GH-2076) (GH-2088)
    ea8b348

    @ambv
    Copy link
    Contributor

    ambv commented Sep 13, 2017

    New changeset 65bc620 by Łukasz Langa (Ivan Levkivskyi) in branch 'master':
    bpo-28556: Minor updates to typing module (bpo-3550)
    65bc620

    @ambv
    Copy link
    Contributor

    ambv commented Sep 14, 2017

    New changeset 9e3cd78 by Łukasz Langa (Miss Islington (bot)) in branch '3.6':
    [3.6] bpo-28556: Minor updates to typing module (GH-3550) (bpo-3558)
    9e3cd78

    @ambv
    Copy link
    Contributor

    ambv commented Sep 14, 2017

    New changeset f350a26 by Łukasz Langa in branch 'master':
    bpo-28556: typing.get_type_hints: better globalns for classes and modules (bpo-3582)
    f350a26

    @ambv
    Copy link
    Contributor

    ambv commented Sep 14, 2017

    New changeset 1658ec0 by Łukasz Langa (Miss Islington (bot)) in branch '3.6':
    [3.6] bpo-28556: typing.get_type_hints: better globalns for classes and modules (GH-3582) (bpo-3583)
    1658ec0

    @ned-deily
    Copy link
    Member

    New changeset 29bc193 by Ned Deily (Ivan Levkivskyi) in branch 'master':
    [bpo-28556] Minor fixes for typing module (bpo-4710)
    29bc193

    @ned-deily
    Copy link
    Member

    New changeset b057627 by Ned Deily (Miss Islington (bot)) in branch '3.6':
    [bpo-28556] Minor fixes for typing module (GH-4710) (bpo-4713)
    b057627

    @ilevkivskyi
    Copy link
    Member

    New changeset 43d12a6 by Ivan Levkivskyi in branch 'master':
    bpo-28556: Minor fixes for typing module (GH-6732)
    43d12a6

    @miss-islington
    Copy link
    Contributor

    New changeset 3c28a63 by Miss Islington (bot) in branch '3.7':
    bpo-28556: Minor fixes for typing module (GH-6732)
    3c28a63

    @ilevkivskyi
    Copy link
    Member

    New changeset f65e31f by Ivan Levkivskyi in branch 'master':
    bpo-28556: Don't simplify unions at runtime (GH-6841)
    f65e31f

    @ilevkivskyi
    Copy link
    Member

    New changeset 09ca590 by Ivan Levkivskyi (Miss Islington (bot)) in branch '3.7':
    bpo-28556: Don't simplify unions at runtime (GH-6841) (GH-6979)
    09ca590

    @miss-islington
    Copy link
    Contributor

    New changeset 8889627 by Miss Islington (bot) (Ivan Levkivskyi) in branch 'master':
    bpo-28556: Add a regression test to typing (GH-15396)
    8889627

    @miss-islington
    Copy link
    Contributor

    New changeset 5fda09c by Miss Islington (bot) in branch '3.8':
    bpo-28556: Add a regression test to typing (GH-15396)
    5fda09c

    @ilevkivskyi
    Copy link
    Member

    New changeset 81528ba by Ivan Levkivskyi in branch 'master':
    bpo-28556: Update the opening note in typing docs (GH-16204)
    81528ba

    @miss-islington
    Copy link
    Contributor

    New changeset 733193d by Miss Islington (bot) in branch '3.7':
    bpo-28556: Update the opening note in typing docs (GH-16204)
    733193d

    @miss-islington
    Copy link
    Contributor

    New changeset 7076764 by Miss Islington (bot) in branch '3.8':
    bpo-28556: Update the opening note in typing docs (GH-16204)
    7076764

    @miss-islington
    Copy link
    Contributor

    New changeset 8144095 by Miss Islington (bot) (Ivan Levkivskyi) in branch 'master':
    bpo-28556: Remove another mention of metaclass of Generic in typing docs (GH-16743)
    8144095

    @miss-islington
    Copy link
    Contributor

    New changeset 20d1f49 by Miss Islington (bot) in branch '3.7':
    bpo-28556: Remove another mention of metaclass of Generic in typing docs (GH-16743)
    20d1f49

    @miss-islington
    Copy link
    Contributor

    New changeset e742826 by Miss Islington (bot) in branch '3.8':
    bpo-28556: Remove another mention of metaclass of Generic in typing docs (GH-16743)
    e742826

    @ned-deily
    Copy link
    Member

    New changeset bd9a70c by Ned Deily (Miss Islington (bot)) in branch '3.7':
    bpo-28556: Remove another mention of metaclass of Generic in typing docs (GH-16743)
    bd9a70c

    @JelleZijlstra
    Copy link
    Member

    Looks like this is no longer relevant.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life
    Projects
    None yet
    Development

    No branches or pull requests

    8 participants