Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@dataclasses.dataclass
class PaginationSchema(object):
"""A docstring to prevent auto generated docstring"""
first_id: int
last_id: int
current_id: int
@dataclasses.dataclass
class ListsUserSchema(object):
"""A docstring to prevent auto generated docstring"""
pagination: PaginationSchema
item_nb: int = number_field(minimum=0)
items: typing.List[UserSchema] = nested_field(
only=['id', 'username', 'display_name', 'company'],
)