From 64b208e0e91540af2b645da595f0ef79ee7522e1 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Sun, 31 Jul 2022 23:49:56 -0700 Subject: chore: enable mypy check `no_implicit_optional` --- gitlab/v4/objects/appearance.py | 2 +- gitlab/v4/objects/repositories.py | 2 +- gitlab/v4/objects/settings.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'gitlab/v4/objects') diff --git a/gitlab/v4/objects/appearance.py b/gitlab/v4/objects/appearance.py index 88ab621..f811d20 100644 --- a/gitlab/v4/objects/appearance.py +++ b/gitlab/v4/objects/appearance.py @@ -38,7 +38,7 @@ class ApplicationAppearanceManager(GetWithoutIdMixin, UpdateMixin, RESTManager): def update( self, id: Optional[Union[str, int]] = None, - new_data: Dict[str, Any] = None, + new_data: Optional[Dict[str, Any]] = None, **kwargs: Any ) -> Dict[str, Any]: """Update an object on the server. diff --git a/gitlab/v4/objects/repositories.py b/gitlab/v4/objects/repositories.py index b8dbdd8..b340e80 100644 --- a/gitlab/v4/objects/repositories.py +++ b/gitlab/v4/objects/repositories.py @@ -196,7 +196,7 @@ class RepositoryMixin(_RestObjectBase): @exc.on_http_error(exc.GitlabListError) def repository_archive( self, - sha: str = None, + sha: Optional[str] = None, streamed: bool = False, action: Optional[Callable[..., Any]] = None, chunk_size: int = 1024, diff --git a/gitlab/v4/objects/settings.py b/gitlab/v4/objects/settings.py index 16b1041..cc6b1c0 100644 --- a/gitlab/v4/objects/settings.py +++ b/gitlab/v4/objects/settings.py @@ -93,7 +93,7 @@ class ApplicationSettingsManager(GetWithoutIdMixin, UpdateMixin, RESTManager): def update( self, id: Optional[Union[str, int]] = None, - new_data: Dict[str, Any] = None, + new_data: Optional[Dict[str, Any]] = None, **kwargs: Any ) -> Dict[str, Any]: """Update an object on the server. -- cgit v1.2.1