Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust __post_serialize__ signature #197

Merged
merged 3 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changes/unreleased/Features-20240506-170313.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Features
body: Enable serialization contexts
time: 2024-05-06T17:03:13.128814-04:00
custom:
Author: gshank
Issue: "198"
2 changes: 1 addition & 1 deletion dbt/adapters/contracts/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def __pre_deserialize__(cls, data):
def translate_aliases(cls, kwargs: Dict[str, Any], recurse: bool = False) -> Dict[str, Any]:
return translate_aliases(kwargs, cls._ALIASES, recurse)

def __post_serialize__(self, dct):
def __post_serialize__(self, dct: Dict, context: Optional[Dict] = None):
# no super() -- do we need it?
if self._ALIASES:
dct.update(
Expand Down
Loading