Skip to content

Commit

Permalink
Merge pull request #2210 from python-gitlab/jlvillal/mypy_step_by_step
Browse files Browse the repository at this point in the history
chore: enable mypy check `no_implicit_optional`
  • Loading branch information
nejch committed Aug 1, 2022
2 parents d81cec3 + 64b208e commit 1c91b24
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gitlab/v4/objects/appearance.py
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion gitlab/v4/objects/repositories.py
Expand Up @@ -196,7 +196,7 @@ def repository_contributors(
@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,
Expand Down
2 changes: 1 addition & 1 deletion gitlab/v4/objects/settings.py
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -13,6 +13,7 @@ disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
no_implicit_optional = true
no_implicit_reexport = true
strict_equality = true
warn_redundant_casts = true
Expand All @@ -23,7 +24,6 @@ warn_unused_ignores = true
# The following need to have changes made to be able to enable them:
# disallow_any_generics = true
# disallow_untyped_calls = true
# no_implicit_optional = true

[[tool.mypy.overrides]] # Overrides for currently untyped modules
module = [
Expand Down

0 comments on commit 1c91b24

Please sign in to comment.