-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bunch of serialization fixes in Python SDK (#54)
* Fix serialization for Table type in Python SDK. * Fix serialization for `CheckSetupStatusOptions` in python SDK.
- Loading branch information
1 parent
de98b35
commit 9216313
Showing
2 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
from typing import NamedTuple | ||
from dataclasses import dataclass | ||
|
||
from . import flow | ||
from . import _engine | ||
|
||
class CheckSetupStatusOptions(NamedTuple): | ||
@dataclass | ||
class CheckSetupStatusOptions: | ||
delete_legacy_flows: bool | ||
|
||
def check_setup_status(options: CheckSetupStatusOptions) -> _engine.SetupStatusCheck: | ||
flow.ensure_all_flows_built() | ||
return _engine.check_setup_status(options) | ||
return _engine.check_setup_status(vars(options)) | ||
|
||
def apply_setup_changes(status_check: _engine.SetupStatusCheck): | ||
_engine.apply_setup_changes(status_check) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters