New submission from Chris Cogdon <ch...@cogdon.org>:

The documentation for dataclasses.dataclass includes this text:

"If any of the added methods already exist on the class, a TypeError will be 
raised."

However, the documentation for various options has ONE case of TypeError, some 
cases of ValueError and other cases of "does nothing".

I'll attempt a fix and create a PR for this.

----------
assignee: docs@python
components: Documentation
messages: 320444
nosy: chriscog, docs@python
priority: normal
severity: normal
status: open
title: Inconsistency in exceptions for dataclasses.dataclass documentation
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33961>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to