Skip to content

Commit

Permalink
Codestyle.
Browse files Browse the repository at this point in the history
  • Loading branch information
koval committed Sep 7, 2023
1 parent 2dae7c6 commit 7d9f8f7
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions huntflow_api_client/models/common.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import json
from datetime import date, datetime
from typing import AbstractSet, Any, Dict, List, Mapping, Optional, Union
from typing import Any, Dict, List, Optional, Union

from pydantic import AnyHttpUrl, BaseModel, EmailStr, Field, PositiveInt
from pydantic.main import IncEx

from huntflow_api_client.models.consts import (
CalendarEventReminderMethod,
Expand All @@ -11,17 +12,13 @@
VacancyState,
)

IntStr = Union[int, str]
AbstractSetIntStr = AbstractSet[IntStr]
MappingIntStrAny = Mapping[IntStr, Any]


class JsonRequestModel(BaseModel):
def jsonable_dict(
self,
*,
include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None,
exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None,
include: IncEx = None,
exclude: IncEx = None,
by_alias: bool = False,
exclude_unset: bool = False,
exclude_defaults: bool = False,
Expand All @@ -40,7 +37,7 @@ def jsonable_dict(
round_trip=round_trip,
warnings=warnings,
),
) # type: ignore
)


class PaginatedResponse(BaseModel):
Expand Down

0 comments on commit 7d9f8f7

Please sign in to comment.