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.

Author lijok
Recipients eric.smith, lijok
Date 2020-01-11.06:21:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
from dataclasses import dataclass

class A:
    PARAM: int

class B(A):
    ARG: int
    PARAM: int = 1

Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\", line 1021, in dataclass
    return wrap(cls)
  File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\", line 1013, in wrap
    return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen)
  File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\", line 927, in _process_class
  File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\", line 503, in _init_fn
    raise TypeError(f'non-default argument {!r} '
TypeError: non-default argument 'ARG' follows default argument
Date User Action Args
2020-01-11 06:21:26lijoksetrecipients: + lijok, eric.smith
2020-01-11 06:21:26lijoksetmessageid: <>
2020-01-11 06:21:26lijoklinkissue39300 messages
2020-01-11 06:21:26lijokcreate