Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

abstract_class_instantiated_py34.py 379B

12345678910111213141516171819
  1. """
  2. Check that instantiating a class with `abc.ABCMeta` as ancestor fails if it
  3. defines abstract methods.
  4. """
  5. # pylint: disable=too-few-public-methods, missing-docstring, no-init
  6. import abc
  7. class BadClass(abc.ABC):
  8. @abc.abstractmethod
  9. def test(self):
  10. pass
  11. def main():
  12. """ do nothing """
  13. BadClass() # [abstract-class-instantiated]