Pylint: too-few-public-methods reported on new @dataclass

Created on 23 Dec 2017  路  1Comment  路  Source: PyCQA/pylint

Steps to reproduce

    1.
from dataclasses import dataclass

@dataclass
class ScheduledTxSearchModel:
    date_from = None
    date_to = None

Current behavior

too-few-public-methods reported

Expected behavior

@dataclass should not have methods. Therefore, no R message should be triggered.

pylint --version output

pylint 1.8.1,
astroid 1.6.0
Python 3.7.0a3 (v3.7.0a3:90a6785, Dec 5 2017, 22:04:17) [MSC v.1900 32 bit (Intel)]

enhancement

Most helpful comment

Yes, we planned long ago to ditch this check, but didn't get to it just yet

>All comments

Yes, we planned long ago to ditch this check, but didn't get to it just yet

Was this page helpful?
0 / 5 - 0 ratings