Пример #1
0
 def __init__(self, *args, **kwargs):
     self.with_health_data = kwargs.pop("with_health_data", False)
     self.stats_period = kwargs.pop("stats_period", None)
     Serializer.__init__(self, *args, **kwargs)
Пример #2
0
 def __init__(self, exclude=None, include=None, *args, **kwargs):
     Serializer.__init__(self, *args, **kwargs)
     self.exclude = frozenset(exclude if exclude else ())
Пример #3
0
 def __init__(self, exclude=None, *args, **kwargs):
     Serializer.__init__(self, *args, **kwargs)
     self.exclude = frozenset(exclude if exclude else ())