[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread miss-islington
miss-islington added the comment: New changeset 2cc19a5463c804b2f39b94de896d55dcb57a364c by Miss Islington (bot) in branch '3.10': bpo-44806: Fix __init__ in subclasses of protocols (GH-27545) https://github.com/python/cpython/commit/2cc19a5463c804b2f39b94de896d55dcb57a364c --

[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 0f6a7739df0055b5c6abe2180f1be97ea4da87b7 by Miss Islington (bot) in branch '3.9': bpo-44806: Fix __init__ in subclasses of protocols (GH-27545) (GH-27559) https://github.com/python/cpython/commit/0f6a7739df0055b5c6abe2180f1be97ea4da87b7 -

[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- pull_requests: +26068 pull_request: https://github.com/python/cpython/pull/27543 ___ Python tracker ___ _

[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 043cd60abed09edddc7185bcf7d039771acc734d by Serhiy Storchaka in branch 'main': bpo-44806: Fix __init__ in subclasses of protocols (GH-27545) https://github.com/python/cpython/commit/043cd60abed09edddc7185bcf7d039771acc734d -- nosy: +lukas

[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +26065 pull_request: https://github.com/python/cpython/pull/27559 ___ Python tracker ___ __

[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +26064 pull_request: https://github.com/python/cpython/pull/27558 ___ Python tracker _

[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is other related case: >>> from typing import * >>> class P(Protocol): pass ... >>> class B: ... def __init__(self): ... self.test = 'OK' ... >>> class D(P, B): ... pass ... >>> D().test Traceback (most recent call last): File "",

[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26054 pull_request: https://github.com/python/cpython/pull/27545 ___ Python tracker ___

[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- keywords: +patch pull_requests: +26050 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27541 ___ Python tracker

[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-li

[issue44806] Subclassing Protocol get different __init__

2021-08-02 Thread Yurii Karabas
New submission from Yurii Karabas <1998uri...@gmail.com>: When we subclassing Protocol, we get a __init__ differing from default one but the protocol in question didn't define any __init__. More information can be found here - https://github.com/python/typing/issues/644 -- components: