Skip to content

Commit

Permalink
fix: no implicit optional
Browse files Browse the repository at this point in the history
  • Loading branch information
doctrino committed Jul 18, 2023
1 parent e999f4f commit 65bf40d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions cognite/client/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ def _retrieve(
self,
identifier: IdentifierCore,
cls: Type[T_CogniteResource],
resource_path: str = None,
params: Dict = None,
headers: Dict = None,
resource_path: Optional[str] = None,
params: Optional[Dict] = None,
headers: Optional[Dict] = None,
) -> Optional[T_CogniteResource]:
resource_path = resource_path or self._RESOURCE_PATH
try:
Expand Down Expand Up @@ -738,9 +738,9 @@ def _update_multiple(
list_cls: Type[T_CogniteResourceList],
resource_cls: Type[T_CogniteResource],
update_cls: Type[CogniteUpdate],
resource_path: str = None,
params: Dict = None,
headers: Dict = None,
resource_path: Optional[str] = None,
params: Optional[Dict] = None,
headers: Optional[Dict] = None,
mode: Literal["legacy", "patch", "replace"] = "legacy",
attribute_properties: CogniteUpdateProperties | None = None,
) -> T_CogniteResource:
Expand All @@ -753,9 +753,9 @@ def _update_multiple(
list_cls: Type[T_CogniteResourceList],
resource_cls: Type[T_CogniteResource],
update_cls: Type[CogniteUpdate],
resource_path: str = None,
params: Dict = None,
headers: Dict = None,
resource_path: Optional[str] = None,
params: Optional[Dict] = None,
headers: Optional[Dict] = None,
mode: Literal["legacy", "patch", "replace"] = "legacy",
attribute_properties: CogniteUpdateProperties | None = None,
) -> T_CogniteResourceList:
Expand All @@ -767,9 +767,9 @@ def _update_multiple(
list_cls: Type[T_CogniteResourceList],
resource_cls: Type[T_CogniteResource],
update_cls: Type[CogniteUpdate],
resource_path: str = None,
params: Dict = None,
headers: Dict = None,
resource_path: Optional[str] = None,
params: Optional[Dict] = None,
headers: Optional[Dict] = None,
mode: Literal["legacy", "patch", "replace"] = "legacy",
attribute_properties: CogniteUpdateProperties | None = None,
) -> Union[T_CogniteResourceList, T_CogniteResource]:
Expand Down

0 comments on commit 65bf40d

Please sign in to comment.