[New-bugs-announce] [issue43827] abc conflicts with __init_subclass__

Vlad Hoi report at bugs.python.org
Tue Apr 13 03:57:15 EDT 2021

New submission from Vlad Hoi <hoivladyslav at yahoo.com>:

from abc import ABC

class A:
    def __init_subclass__(self):

class B(ABC, A, name="name"):

After initialising class B, this exception occurs, because multiple "name" arguments where provided:

Traceback (most recent call last):
  File "test_abc", line 9, in <module>
    class B(ABC, A, name="name"):
TypeError: __new__() got multiple values for argument 'name'

components: Extension Modules
messages: 390933
nosy: vladhoi
priority: normal
severity: normal
status: open
title: abc conflicts with __init_subclass__
type: crash
versions: Python 3.8

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list