Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.228.1 (#23)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Mar 29, 2024
1 parent 3dedd5f commit 1b5efb0
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 15 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ id: 986026b6-d725-4b86-9c4d-67f6e6904a30
management:
docChecksum: aca3a63b6749e3b713cb0c95f1e09457
docVersion: "2018-02-08"
speakeasyVersion: 1.219.1
generationVersion: 2.286.7
releaseVersion: 3.0.0rc1
configChecksum: 386ffffa8f581812bb96afe49cb4e290
speakeasyVersion: 1.228.1
generationVersion: 2.292.0
releaseVersion: 3.0.0rc2
configChecksum: 2f3bf8dc96122a2c95ace6037465a2c9
repoURL: https://github.com/goshippo/shippo-python-sdk.git
installationURL: https://github.com/goshippo/shippo-python-sdk.git
published: true
features:
python:
constsAndDefaults: 0.1.3
core: 4.5.1
core: 4.5.2
flattening: 2.81.1
globalSecurity: 2.83.5
globalServerURLs: 2.82.2
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,14 @@ Based on:
### Generated
- [python v0.0.6] .
### Releases
- [PyPI v0.0.6] https://pypi.org/project/shippo/0.0.6 - .
- [PyPI v0.0.6] https://pypi.org/project/shippo/0.0.6 - .

## 2024-03-29 20:01:04
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.228.1 (2.292.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v3.0.0rc2] .
### Releases
- [PyPI v3.0.0rc2] https://pypi.org/project/shippo/3.0.0rc2 - .
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name="shippo",
version="3.0.0rc1",
version="3.0.0rc2",
author="Shippo",
description="Python Client SDK Generated by Speakeasy",
long_description=long_description,
Expand Down
4 changes: 2 additions & 2 deletions src/shippo/_hooks/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ def before_request(self, hook_ctx: BeforeRequestContext, request: requests_http.

class AfterSuccessHook(ABC):
@abstractmethod
def after_success(self, hook_ctx: AfterSuccessContext, response: requests_http.Response) -> Union[requests_http.PreparedRequest, Exception]:
def after_success(self, hook_ctx: AfterSuccessContext, response: requests_http.Response) -> Union[requests_http.Response, Exception]:
pass


class AfterErrorHook(ABC):
@abstractmethod
def after_error(self, hook_ctx: AfterErrorContext, response: Optional[requests_http.Response], error: Optional[Exception]) -> Union[Tuple[Optional[requests_http.PreparedRequest], Optional[Exception]], Exception]:
def after_error(self, hook_ctx: AfterErrorContext, response: Optional[requests_http.Response], error: Optional[Exception]) -> Union[Tuple[Optional[requests_http.Response], Optional[Exception]], Exception]:
pass


Expand Down
6 changes: 3 additions & 3 deletions src/shippo/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class SDKConfiguration:
server_idx: int = 0
language: str = 'python'
openapi_doc_version: str = '2018-02-08'
sdk_version: str = '3.0.0rc1'
gen_version: str = '2.286.7'
user_agent: str = 'speakeasy-sdk/python 3.0.0rc1 2.286.7 2018-02-08 shippo'
sdk_version: str = '3.0.0rc2'
gen_version: str = '2.292.0'
user_agent: str = 'speakeasy-sdk/python 3.0.0rc2 2.292.0 2018-02-08 shippo'
retry_config: RetryConfig = None
_hooks: SDKHooks = None

Expand Down
6 changes: 3 additions & 3 deletions src/shippo/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def get_query_params(clazz: type, query_params: Any, gbls: Optional[Dict[str, Di
return params


def get_headers(headers_params: Any) -> Dict[str, str]:
def get_headers(headers_params: Any, gbls: Optional[Dict[str, Dict[str, Dict[str, Any]]]] = None) -> Dict[str, str]:
if headers_params is None:
return {}

Expand All @@ -284,8 +284,8 @@ def get_headers(headers_params: Any) -> Dict[str, str]:
if not metadata:
continue

value = _serialize_header(metadata.get(
'explode', False), getattr(headers_params, field.name))
value = _populate_from_globals(field.name, getattr(headers_params, field.name), 'header', gbls)
value = _serialize_header(metadata.get('explode', False), value)

if value != '':
headers[metadata.get('field_name', field.name)] = value
Expand Down

0 comments on commit 1b5efb0

Please sign in to comment.