summaryrefslogtreecommitdiff
path: root/gitlab/v4
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2022-07-31 23:49:56 -0700
committerJohn L. Villalovos <john@sodarock.com>2022-07-31 23:49:56 -0700
commit64b208e0e91540af2b645da595f0ef79ee7522e1 (patch)
tree7262cc0a98618dfd9633aa52151f68f4d592a4c3 /gitlab/v4
parent54dd4c3f857f82aa8781b0daf22fa2dd3c60c2c4 (diff)
downloadgitlab-64b208e0e91540af2b645da595f0ef79ee7522e1.tar.gz
chore: enable mypy check `no_implicit_optional`
Diffstat (limited to 'gitlab/v4')
-rw-r--r--gitlab/v4/objects/appearance.py2
-rw-r--r--gitlab/v4/objects/repositories.py2
-rw-r--r--gitlab/v4/objects/settings.py2
3 files changed, 3 insertions, 3 deletions
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.