Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit64b208e

Browse files
chore: enable mypy checkno_implicit_optional
1 parent54dd4c3 commit64b208e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

‎gitlab/v4/objects/appearance.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ApplicationAppearanceManager(GetWithoutIdMixin, UpdateMixin, RESTManager):
3838
defupdate(
3939
self,
4040
id:Optional[Union[str,int]]=None,
41-
new_data:Dict[str,Any]=None,
41+
new_data:Optional[Dict[str,Any]]=None,
4242
**kwargs:Any
4343
)->Dict[str,Any]:
4444
"""Update an object on the server.

‎gitlab/v4/objects/repositories.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def repository_contributors(
196196
@exc.on_http_error(exc.GitlabListError)
197197
defrepository_archive(
198198
self,
199-
sha:str=None,
199+
sha:Optional[str]=None,
200200
streamed:bool=False,
201201
action:Optional[Callable[...,Any]]=None,
202202
chunk_size:int=1024,

‎gitlab/v4/objects/settings.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class ApplicationSettingsManager(GetWithoutIdMixin, UpdateMixin, RESTManager):
9393
defupdate(
9494
self,
9595
id:Optional[Union[str,int]]=None,
96-
new_data:Dict[str,Any]=None,
96+
new_data:Optional[Dict[str,Any]]=None,
9797
**kwargs:Any
9898
)->Dict[str,Any]:
9999
"""Update an object on the server.

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ disallow_incomplete_defs = true
1313
disallow_subclassing_any =true
1414
disallow_untyped_decorators =true
1515
disallow_untyped_defs =true
16+
no_implicit_optional =true
1617
no_implicit_reexport =true
1718
strict_equality =true
1819
warn_redundant_casts =true
@@ -23,7 +24,6 @@ warn_unused_ignores = true
2324
# The following need to have changes made to be able to enable them:
2425
# disallow_any_generics = true
2526
# disallow_untyped_calls = true
26-
# no_implicit_optional = true
2727

2828
[[tool.mypy.overrides]]# Overrides for currently untyped modules
2929
module = [

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp