
import abc


class Task(object, metaclass=abc.ABCMeta):

    def __init__(self):
        self.success = False

    @abc.abstractproperty
    def name(self):
        pass

    def reset(self):
        self.success = False

    @property
    def followups(self):
        return []

    @abc.abstractmethod
    def run(self):
        pass


import abc


class Task(object, metaclass=abc.ABCMeta):

    def __init__(self):
        self.success = False

    @property
    @abc.abstractmethod
    def name(self):
        pass

    def reset(self):
        self.success = False

    @property
    def followups(self):
        return []

    @abc.abstractmethod
    def run(self):
        pass

Replace abc.abstractproperty with property and abc.abstractmethod
Replace abc.abstractproperty with property and abc.abstractmethod

Replace abc.abstractproperty with property and abc.abstractmethod,
as abc.abstractproperty has been deprecated since python3.3[1]

[1]https://docs.python.org/3.8/whatsnew/3.3.html?highlight=deprecated#abc

Change-Id: Ibb048b879fa58b5e144ae228628b3ffaeae65bbb

  
  import abc
  
  
  class Task(object, metaclass=abc.ABCMeta):
  
      def __init__(self):
          self.success = False
  
+     @property
-     @abc.abstractproperty
+     @abc.abstractmethod
      def name(self):
          pass
  
      def reset(self):
          self.success = False
  
      @property
      def followups(self):
          return []
  
      @abc.abstractmethod
      def run(self):
          pass
  
Replace abc.abstractproperty with property and abc.abstractmethod
## Code Before:

import abc


class Task(object, metaclass=abc.ABCMeta):

    def __init__(self):
        self.success = False

    @abc.abstractproperty
    def name(self):
        pass

    def reset(self):
        self.success = False

    @property
    def followups(self):
        return []

    @abc.abstractmethod
    def run(self):
        pass

## Instruction:
Replace abc.abstractproperty with property and abc.abstractmethod
## Code After:

import abc


class Task(object, metaclass=abc.ABCMeta):

    def __init__(self):
        self.success = False

    @property
    @abc.abstractmethod
    def name(self):
        pass

    def reset(self):
        self.success = False

    @property
    def followups(self):
        return []

    @abc.abstractmethod
    def run(self):
        pass
