diff options
author | John L. Villalovos <john@sodarock.com> | 2022-02-03 13:18:40 -0800 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2022-02-03 13:18:40 -0800 |
commit | 7cf35b2c0e44732ca02b74b45525cc7c789457fb (patch) | |
tree | 0c97eb35be08710974f253984e3ef1e41587e3a9 /gitlab/utils.py | |
parent | 64d01ef23b1269b705350106d8ddc2962a780dce (diff) | |
download | gitlab-7cf35b2c0e44732ca02b74b45525cc7c789457fb.tar.gz |
chore: require kwargs for `utils.copy_dict()`
The non-keyword arguments were a tiny bit confusing as the destination was
first and the source was second.
Change the order and require key-word only arguments to ensure we
don't silently break anyone.
Diffstat (limited to 'gitlab/utils.py')
-rw-r--r-- | gitlab/utils.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gitlab/utils.py b/gitlab/utils.py index f549042..7b01d17 100644 --- a/gitlab/utils.py +++ b/gitlab/utils.py @@ -44,7 +44,11 @@ def response_content( return None -def copy_dict(dest: Dict[str, Any], src: Dict[str, Any]) -> None: +def copy_dict( + *, + src: Dict[str, Any], + dest: Dict[str, Any], +) -> None: for k, v in src.items(): if isinstance(v, dict): # Transform dict values to new attributes. For example: |