diff options
author | John L. Villalovos <john@sodarock.com> | 2021-11-24 21:24:16 -0800 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2021-12-05 22:10:29 -0800 |
commit | f40e9b3517607c95f2ce2735e3b08ffde8d61e5a (patch) | |
tree | 04bb910ec19d26de826acbafe48b3d1927779c8f /gitlab/v4/objects/keys.py | |
parent | a86d0490cadfc2f9fe5490879a1258cf264d5202 (diff) | |
download | gitlab-jlvillal/mypy_strict_two_steps.tar.gz |
chore: enable 'warn_redundant_casts' for mypyjlvillal/mypy_strict_two_steps
Enable 'warn_redundant_casts'for mypy and resolve one issue.
Diffstat (limited to 'gitlab/v4/objects/keys.py')
-rw-r--r-- | gitlab/v4/objects/keys.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/v4/objects/keys.py b/gitlab/v4/objects/keys.py index 46f6894..c03dced 100644 --- a/gitlab/v4/objects/keys.py +++ b/gitlab/v4/objects/keys.py @@ -31,4 +31,4 @@ class KeyManager(GetMixin, RESTManager): server_data = self.gitlab.http_get(self.path, **kwargs) if TYPE_CHECKING: assert isinstance(server_data, dict) - return cast(Key, self._obj_cls(self, server_data)) + return self._obj_cls(self, server_data) |