Skip to content

Commit

Permalink
accept None as empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Oct 24, 2024
1 parent 6be8180 commit eda59d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions google/cloud/bigtable/data/_cross_sync/_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,18 +201,18 @@ def __init__(
sync_name: str | None = None,
*,
replace_symbols: dict[str, str] | None = None,
docstring_format_vars: dict[str, tuple[str, str]] | None = None,
docstring_format_vars: dict[str, tuple[str | None, str | None]] | None = None,
rm_aio: bool = False,
add_mapping_for_name: str | None = None,
):
self.sync_name = sync_name
self.replace_symbols = replace_symbols
docstring_format_vars = docstring_format_vars or {}
self.async_docstring_format_vars = {
k: v[0] for k, v in docstring_format_vars.items()
k: v[0] or "" for k, v in docstring_format_vars.items()
}
self.sync_docstring_format_vars = {
k: v[1] for k, v in docstring_format_vars.items()
k: v[1] or "" for k, v in docstring_format_vars.items()
}
self.rm_aio = rm_aio
self.add_mapping_for_name = add_mapping_for_name
Expand Down

0 comments on commit eda59d4

Please sign in to comment.