Skip to content

Commit f940fb2

Browse files
chore(internal): minor formatting changes (#87)
1 parent 3f5d18f commit f940fb2

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

src/finch/resources/hris/benefits/benefits.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import TYPE_CHECKING
5+
from typing import TYPE_CHECKING, Optional
66

77
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
88
from ...._utils import maybe_transform
@@ -38,8 +38,8 @@ def create(
3838
self,
3939
*,
4040
description: str | NotGiven = NOT_GIVEN,
41-
frequency: BenefitFrequency | NotGiven = NOT_GIVEN,
42-
type: BenefitType | NotGiven = NOT_GIVEN,
41+
frequency: Optional[BenefitFrequency] | NotGiven = NOT_GIVEN,
42+
type: Optional[BenefitType] | NotGiven = NOT_GIVEN,
4343
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
4444
# The extra values given here take precedence over values defined on the client or passed to this method.
4545
extra_headers: Headers | None = None,
@@ -211,8 +211,8 @@ async def create(
211211
self,
212212
*,
213213
description: str | NotGiven = NOT_GIVEN,
214-
frequency: BenefitFrequency | NotGiven = NOT_GIVEN,
215-
type: BenefitType | NotGiven = NOT_GIVEN,
214+
frequency: Optional[BenefitFrequency] | NotGiven = NOT_GIVEN,
215+
type: Optional[BenefitType] | NotGiven = NOT_GIVEN,
216216
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
217217
# The extra values given here take precedence over values defined on the client or passed to this method.
218218
extra_headers: Headers | None = None,

src/finch/types/hris/benefit_create_params.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from __future__ import annotations
44

5+
from typing import Optional
56
from typing_extensions import TypedDict
67

78
from .benefit_type import BenefitType
@@ -13,7 +14,7 @@
1314
class BenefitCreateParams(TypedDict, total=False):
1415
description: str
1516

16-
frequency: BenefitFrequency
17+
frequency: Optional[BenefitFrequency]
1718

18-
type: BenefitType
19+
type: Optional[BenefitType]
1920
"""Type of benefit."""

src/finch/types/hris/supported_benefit.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from ..._models import BaseModel
77
from .benefit_type import BenefitType
8+
from .benefit_frequency import BenefitFrequency
89

910
__all__ = ["SupportedBenefit"]
1011

@@ -33,7 +34,7 @@ class SupportedBenefit(BaseModel):
3334
An empty array indicates deductions are not supported.
3435
"""
3536

36-
frequencies: Optional[List[Optional[Literal["one_time", "every_paycheck"]]]] = None
37+
frequencies: Optional[List[Optional[BenefitFrequency]]] = None
3738
"""The list of frequencies supported by the provider for this benefit"""
3839

3940
hsa_contribution_limit: Optional[List[Literal["individual", "family"]]] = None

0 commit comments

Comments
 (0)