.. _useless-object-inheritance:

useless-object-inheritance / R0205
==================================

**Message emitted:**

Class %r inherits from object, can be safely removed from bases in python3

**Description:**

*Used when a class inherit from object, which under python3 is implicit, hence can be safely removed from bases.*

**Problematic code:**

.. literalinclude:: /data/messages/u/useless-object-inheritance/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/u/useless-object-inheritance/good.py
   :language: python



Created by the `classes <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/classes/class_checker.py>`__ checker.