Skip to content

Commit

Permalink
chore(internal): minor import restructuring (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jul 11, 2024
1 parent 641b850 commit fa85f33
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 82 deletions.
4 changes: 1 addition & 3 deletions src/finch/resources/access_tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
from .._compat import cached_property
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from .._base_client import (
make_request_options,
)
from .._base_client import make_request_options
from ..types.create_access_token_response import CreateAccessTokenResponse

__all__ = ["AccessTokens", "AsyncAccessTokens"]
Expand Down
4 changes: 1 addition & 3 deletions src/finch/resources/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
from .._compat import cached_property
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from .._base_client import (
make_request_options,
)
from .._base_client import make_request_options
from ..types.introspection import Introspection
from ..types.disconnect_response import DisconnectResponse

Expand Down
5 changes: 1 addition & 4 deletions src/finch/resources/hris/benefits/benefits.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@
from ...._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
from ....types.hris import BenefitType, BenefitFrequency, benefit_create_params, benefit_update_params
from ...._base_client import (
AsyncPaginator,
make_request_options,
)
from ...._base_client import AsyncPaginator, make_request_options
from ....types.hris.benefit_type import BenefitType
from ....types.hris.company_benefit import CompanyBenefit
from ....types.hris.benefit_frequency import BenefitFrequency
Expand Down
5 changes: 1 addition & 4 deletions src/finch/resources/hris/benefits/individuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
from ...._base_client import (
AsyncPaginator,
make_request_options,
)
from ...._base_client import AsyncPaginator, make_request_options
from ....types.hris.benefits import (
individual_enroll_many_params,
individual_unenroll_many_params,
Expand Down
4 changes: 1 addition & 3 deletions src/finch/resources/hris/company.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..._base_client import (
make_request_options,
)
from ..._base_client import make_request_options
from ...types.hris.company import Company

__all__ = ["CompanyResource", "AsyncCompanyResource"]
Expand Down
5 changes: 1 addition & 4 deletions src/finch/resources/hris/directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncIndividualsPage, AsyncIndividualsPage
from ...types.hris import directory_list_params
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.hris.individual_in_directory import IndividualInDirectory

__all__ = ["Directory", "AsyncDirectory"]
Expand Down
5 changes: 1 addition & 4 deletions src/finch/resources/hris/employments.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncResponsesPage, AsyncResponsesPage
from ...types.hris import employment_retrieve_many_params
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.hris.employment_data_response import EmploymentDataResponse

__all__ = ["Employments", "AsyncEmployments"]
Expand Down
5 changes: 1 addition & 4 deletions src/finch/resources/hris/individuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncResponsesPage, AsyncResponsesPage
from ...types.hris import individual_retrieve_many_params
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.hris.individual_response import IndividualResponse

__all__ = ["Individuals", "AsyncIndividuals"]
Expand Down
5 changes: 1 addition & 4 deletions src/finch/resources/hris/pay_statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncResponsesPage, AsyncResponsesPage
from ...types.hris import pay_statement_retrieve_many_params
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.hris.pay_statement_response import PayStatementResponse

__all__ = ["PayStatements", "AsyncPayStatements"]
Expand Down
5 changes: 1 addition & 4 deletions src/finch/resources/hris/payments.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
from ...types.hris import payment_list_params
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.hris.payment import Payment

__all__ = ["Payments", "AsyncPayments"]
Expand Down
5 changes: 1 addition & 4 deletions src/finch/resources/jobs/automated.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncPage, AsyncPage
from ...types.jobs import automated_list_params, automated_create_params
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.jobs.automated_async_job import AutomatedAsyncJob
from ...types.jobs.automated_create_response import AutomatedCreateResponse

Expand Down
4 changes: 1 addition & 3 deletions src/finch/resources/jobs/manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..._base_client import (
make_request_options,
)
from ..._base_client import make_request_options
from ...types.jobs.manual_async_job import ManualAsyncJob

__all__ = ["Manual", "AsyncManual"]
Expand Down
5 changes: 1 addition & 4 deletions src/finch/resources/payroll/pay_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.payroll import pay_group_list_params
from ...types.payroll.pay_group_list_response import PayGroupListResponse
from ...types.payroll.pay_group_retrieve_response import PayGroupRetrieveResponse
Expand Down
5 changes: 1 addition & 4 deletions src/finch/resources/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..pagination import SyncSinglePage, AsyncSinglePage
from .._base_client import (
AsyncPaginator,
make_request_options,
)
from .._base_client import AsyncPaginator, make_request_options
from ..types.provider import Provider

__all__ = ["Providers", "AsyncProviders"]
Expand Down
4 changes: 1 addition & 3 deletions src/finch/resources/request_forwarding.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
from .._compat import cached_property
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from .._base_client import (
make_request_options,
)
from .._base_client import make_request_options
from ..types.request_forwarding_forward_response import RequestForwardingForwardResponse

__all__ = ["RequestForwarding", "AsyncRequestForwarding"]
Expand Down
4 changes: 1 addition & 3 deletions src/finch/resources/sandbox/company.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..._base_client import (
make_request_options,
)
from ..._base_client import make_request_options
from ...types.sandbox import company_update_params
from ...types.location_param import LocationParam
from ...types.sandbox.company_update_response import CompanyUpdateResponse
Expand Down
4 changes: 1 addition & 3 deletions src/finch/resources/sandbox/connections/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...._base_client import (
make_request_options,
)
from ...._base_client import make_request_options
from ....types.sandbox.connections import account_create_params, account_update_params
from ....types.shared.connection_status_type import ConnectionStatusType
from ....types.sandbox.connections.account_create_response import AccountCreateResponse
Expand Down
4 changes: 1 addition & 3 deletions src/finch/resources/sandbox/connections/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...._base_client import (
make_request_options,
)
from ...._base_client import make_request_options
from ....types.sandbox import connection_create_params
from ....types.sandbox.connection_create_response import ConnectionCreateResponse

Expand Down
4 changes: 1 addition & 3 deletions src/finch/resources/sandbox/directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..._base_client import (
make_request_options,
)
from ..._base_client import make_request_options
from ...types.sandbox import directory_create_params
from ...types.sandbox.directory_create_response import DirectoryCreateResponse

Expand Down
4 changes: 1 addition & 3 deletions src/finch/resources/sandbox/employment.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..._base_client import (
make_request_options,
)
from ..._base_client import make_request_options
from ...types.sandbox import employment_update_params
from ...types.income_param import IncomeParam
from ...types.location_param import LocationParam
Expand Down
4 changes: 1 addition & 3 deletions src/finch/resources/sandbox/individual.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..._base_client import (
make_request_options,
)
from ..._base_client import make_request_options
from ...types.sandbox import individual_update_params
from ...types.location_param import LocationParam
from ...types.sandbox.individual_update_response import IndividualUpdateResponse
Expand Down
4 changes: 1 addition & 3 deletions src/finch/resources/sandbox/jobs/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ...._base_client import (
make_request_options,
)
from ...._base_client import make_request_options
from ....types.sandbox.jobs import configuration_update_params
from ....types.sandbox.jobs.sandbox_job_configuration import SandboxJobConfiguration
from ....types.sandbox.jobs.configuration_retrieve_response import ConfigurationRetrieveResponse
Expand Down
4 changes: 1 addition & 3 deletions src/finch/resources/sandbox/jobs/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
ConfigurationWithStreamingResponse,
AsyncConfigurationWithStreamingResponse,
)
from ...._base_client import (
make_request_options,
)
from ...._base_client import make_request_options
from ....types.sandbox import job_create_params
from ....types.sandbox.job_create_response import JobCreateResponse

Expand Down
4 changes: 1 addition & 3 deletions src/finch/resources/sandbox/payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..._base_client import (
make_request_options,
)
from ..._base_client import make_request_options
from ...types.sandbox import payment_create_params
from ...types.sandbox.payment_create_response import PaymentCreateResponse

Expand Down

0 comments on commit fa85f33

Please sign in to comment.