[CodeStyle] `black -> ruff format` migration - part 3 by gouzil · Pull Request #74656 · PaddlePaddle/Paddle

Expand Up @@ -24,7 +24,6 @@

class PirAttrsSerializer:
def __init__(self, func): self.attributes_schema = self._get_attributes_schema(func) self._check_attributes_schema(self.attributes_schema) Expand Down Expand Up @@ -107,7 +106,6 @@ def _get_schema_item_as_key(self, schema_item):

class PirAttributeSerializer:
def __init__(self, attr_name): self.attr_name = attr_name
Expand All @@ -117,7 +115,6 @@ def __call__(self, value):

class BoolAttributeSerializer(PirAttributeSerializer):
def __init__(self, attr_name): self.attr_name = attr_name
Expand All @@ -127,7 +124,6 @@ def __call__(self, value):

class IntAttributeSerializer(PirAttributeSerializer):
def __init__(self, attr_name): self.attr_name = attr_name
Expand All @@ -137,7 +133,6 @@ def __call__(self, value):

class FloatAttributeSerializer(PirAttributeSerializer):
def __init__(self, attr_name): self.attr_name = attr_name
Expand All @@ -147,7 +142,6 @@ def __call__(self, value):

class StrAttributeSerializer(PirAttributeSerializer):
def __init__(self, attr_name): self.attr_name = attr_name
Expand All @@ -157,7 +151,6 @@ def __call__(self, value):

class DTypeAttributeSerializer(PirAttributeSerializer):
def __init__(self, attr_name): self.attr_name = attr_name
Expand All @@ -168,7 +161,6 @@ def __call__(self, value):

class BoolArrayAttributeSerializer(PirAttributeSerializer):
def __init__(self, attr_name): self.attr_name = attr_name
Expand All @@ -180,7 +172,6 @@ def __call__(self, value):

class IntArrayAttributeSerializer(PirAttributeSerializer):
def __init__(self, attr_name): self.attr_name = attr_name
Expand All @@ -192,7 +183,6 @@ def __call__(self, value):

class FloatArrayAttributeSerializer(PirAttributeSerializer):
def __init__(self, attr_name): self.attr_name = attr_name
Expand All @@ -204,7 +194,6 @@ def __call__(self, value):

class StrArrayAttributeSerializer(PirAttributeSerializer):
def __init__(self, attr_name): self.attr_name = attr_name
Expand All @@ -216,7 +205,6 @@ def __call__(self, value):

class DTypeArrayAttributeSerializer(PirAttributeSerializer):
def __init__(self, attr_name): self.attr_name = attr_name
Expand Down