Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/patterns.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pylintpython3",
"version": "3.3.4",
"version": "3.3.6",
"patterns": [
{
"patternId": "E0103",
Expand Down
86 changes: 4 additions & 82 deletions docs/tests/E0110.py
Original file line number Diff line number Diff line change
@@ -1,89 +1,11 @@
##Patterns: E0110

import abc
import six
from abc import ABCMeta
from lala import Bala


@six.add_metaclass(abc.ABCMeta)
class GoodClass(object):
pass

@six.add_metaclass(abc.ABCMeta)
class SecondGoodClass(object):
pass

def test(self):
""" do nothing. """

@six.add_metaclass(abc.ABCMeta)
class ThirdGoodClass(object):
pass

def test(self):
raise NotImplementedError()

@six.add_metaclass(abc.ABCMeta)
class FourthGoodClass(object):
pass

@six.add_metaclass(abc.ABCMeta)
class BadClass(object):
pass

@abc.abstractmethod
def test(self):
""" do nothing. """

@six.add_metaclass(abc.ABCMeta)
class SecondBadClass(object):
pass

@property
@abc.abstractmethod
def test(self):
""" do nothing. """

@six.add_metaclass(abc.ABCMeta)
class ThirdBadClass(object):

@abc.abstractmethod
def test(self):
pass


class FourthBadClass(ThirdBadClass):
pass


@six.add_metaclass(abc.ABCMeta)
class SomeMetaclass(object):
pass

class Animal(abc.ABC):
@abc.abstractmethod
def prop(self):
def make_sound(self):
pass


class FifthGoodClass(SomeMetaclass):
"""Don't consider this abstract if some attributes are
there, but can't be inferred.
"""
prop = Bala # missing


def main():
""" do nothing """
GoodClass()
SecondGoodClass()
ThirdGoodClass()
FourthGoodClass()
##Err: E0110
BadClass()
##Err: E0110
SecondBadClass()
##Err: E0110
ThirdBadClass()
##Err: E0110
FourthBadClass()
##Err: E0110
sheep = Animal()
12 changes: 6 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
pylint==3.3.4
Django==5.1.4
pylint-django==2.5.5
Flask==3.0.3
pylint==3.3.6
Django==5.1.7
pylint-django==2.6.1
Flask==3.1.0
pylint-flask==0.6
pylint-common==0.2.5
pylint-celery==0.3
SaltPyLint==2024.2.5
jsonpickle==3.3.0
asttokens==2.4.1
jsonpickle==4.0.2
asttokens==3.0.0
pylint-beam==0.1.2
pylint-pytest==1.1.8