
from __future__ import absolute_import
import abc

import six

from ._function import is_nan
from ._typecode import Typecode


@six.add_metaclass(abc.ABCMeta)
class DataPeropertyInterface(object):
    __slots__ = ()

    @abc.abstractproperty
    def align(self):   # pragma: no cover
        pass

    @abc.abstractproperty
    def decimal_places(self):   # pragma: no cover
        pass

    @abc.abstractproperty
    def typecode(self):   # pragma: no cover
        pass

    @property
    def format_str(self):
        if self.typecode == Typecode.INT:
            return "d"

        if self.typecode == Typecode.FLOAT:
            if is_nan(self.decimal_places):
                return "f"

            return ".%df" % (self.decimal_places)

        return "s"


from __future__ import absolute_import
import abc

import six

from ._function import is_nan
from ._typecode import Typecode


@six.add_metaclass(abc.ABCMeta)
class DataPeropertyInterface(object):
    __slots__ = ()

    @abc.abstractproperty
    def align(self):   # pragma: no cover
        pass

    @abc.abstractproperty
    def decimal_places(self):   # pragma: no cover
        pass

    @abc.abstractproperty
    def typecode(self):   # pragma: no cover
        pass

Delete property from the interface class
Delete property from the interface class

  
  from __future__ import absolute_import
  import abc
  
  import six
  
  from ._function import is_nan
  from ._typecode import Typecode
  
  
  @six.add_metaclass(abc.ABCMeta)
  class DataPeropertyInterface(object):
      __slots__ = ()
  
      @abc.abstractproperty
      def align(self):   # pragma: no cover
          pass
  
      @abc.abstractproperty
      def decimal_places(self):   # pragma: no cover
          pass
  
      @abc.abstractproperty
      def typecode(self):   # pragma: no cover
          pass
  
-     @property
-     def format_str(self):
-         if self.typecode == Typecode.INT:
-             return "d"
- 
-         if self.typecode == Typecode.FLOAT:
-             if is_nan(self.decimal_places):
-                 return "f"
- 
-             return ".%df" % (self.decimal_places)
- 
-         return "s"
- 
Delete property from the interface class
## Code Before:

from __future__ import absolute_import
import abc

import six

from ._function import is_nan
from ._typecode import Typecode


@six.add_metaclass(abc.ABCMeta)
class DataPeropertyInterface(object):
    __slots__ = ()

    @abc.abstractproperty
    def align(self):   # pragma: no cover
        pass

    @abc.abstractproperty
    def decimal_places(self):   # pragma: no cover
        pass

    @abc.abstractproperty
    def typecode(self):   # pragma: no cover
        pass

    @property
    def format_str(self):
        if self.typecode == Typecode.INT:
            return "d"

        if self.typecode == Typecode.FLOAT:
            if is_nan(self.decimal_places):
                return "f"

            return ".%df" % (self.decimal_places)

        return "s"

## Instruction:
Delete property from the interface class
## Code After:

from __future__ import absolute_import
import abc

import six

from ._function import is_nan
from ._typecode import Typecode


@six.add_metaclass(abc.ABCMeta)
class DataPeropertyInterface(object):
    __slots__ = ()

    @abc.abstractproperty
    def align(self):   # pragma: no cover
        pass

    @abc.abstractproperty
    def decimal_places(self):   # pragma: no cover
        pass

    @abc.abstractproperty
    def typecode(self):   # pragma: no cover
        pass
