Skip to content

Commit d25c551

Browse files
run latest black on appconfiguration (#35286)
1 parent d5c3578 commit d25c551

File tree

4 files changed

+7
-15
lines changed

4 files changed

+7
-15
lines changed

sdk/appconfiguration/azure-appconfiguration-provider/azure/appconfiguration/provider/_azureappconfigurationprovider.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,7 @@ def values(self) -> ValuesView[Union[str, Mapping[str, Any]]]:
715715
return (self._dict).values()
716716

717717
@overload
718-
def get(self, key: str, default: None = None) -> Union[str, JSON, None]:
719-
...
718+
def get(self, key: str, default: None = None) -> Union[str, JSON, None]: ...
720719

721720
@overload
722721
def get(self, key: str, default: Union[str, JSON, _T]) -> Union[str, JSON, _T]: # pylint: disable=signature-differs

sdk/appconfiguration/azure-appconfiguration-provider/azure/appconfiguration/provider/aio/_azureappconfigurationproviderasync.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,7 @@ def values(self) -> ValuesView[Union[str, Mapping[str, Any]]]:
606606
return self._dict.values()
607607

608608
@overload
609-
def get(self, key: str, default: None = None) -> Union[str, JSON, None]:
610-
...
609+
def get(self, key: str, default: None = None) -> Union[str, JSON, None]: ...
611610

612611
@overload
613612
def get(self, key: str, default: Union[str, JSON, _T]) -> Union[str, JSON, _T]: # pylint: disable=signature-differs

sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/aio/_azure_appconfiguration_client_async.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ def list_configuration_settings(
149149
fields: Optional[List[str]] = None,
150150
**kwargs: Any,
151151
) -> AsyncItemPaged[ConfigurationSetting]:
152-
153152
"""List the configuration settings stored in the configuration service, optionally filtered by
154153
key, label and accept_datetime.
155154
@@ -246,7 +245,6 @@ async def get_configuration_setting(
246245
accept_datetime: Optional[Union[datetime, str]] = None,
247246
**kwargs,
248247
) -> Union[None, ConfigurationSetting]:
249-
250248
"""Get the matched ConfigurationSetting from Azure App Configuration service
251249
252250
:param key: key of the ConfigurationSetting
@@ -307,7 +305,6 @@ async def get_configuration_setting(
307305
async def add_configuration_setting(
308306
self, configuration_setting: ConfigurationSetting, **kwargs
309307
) -> ConfigurationSetting:
310-
311308
"""Add a ConfigurationSetting instance into the Azure App Configuration service.
312309
313310
:param configuration_setting: the ConfigurationSetting object to be added
@@ -357,7 +354,6 @@ async def set_configuration_setting(
357354
etag: Optional[str] = None,
358355
**kwargs,
359356
) -> ConfigurationSetting:
360-
361357
"""Add or update a ConfigurationSetting.
362358
If the configuration setting identified by key and label does not exist, this is a create.
363359
Otherwise this is an update.
@@ -490,7 +486,6 @@ def list_revisions(
490486
fields: Optional[List[str]] = None,
491487
**kwargs,
492488
) -> AsyncItemPaged[ConfigurationSetting]:
493-
494489
"""
495490
Find the ConfigurationSetting revision history, optionally filtered by key, label and accept_datetime.
496491
@@ -553,7 +548,6 @@ async def set_read_only(
553548
match_condition: MatchConditions = MatchConditions.Unconditionally,
554549
**kwargs,
555550
) -> ConfigurationSetting:
556-
557551
"""Set a configuration setting read only
558552
559553
:param configuration_setting: the ConfigurationSetting to be set read only
@@ -801,7 +795,6 @@ def list_snapshots(
801795
raise binascii.Error("Connection string secret has incorrect padding") # pylint: disable=raise-missing-from
802796

803797
async def update_sync_token(self, token: str) -> None:
804-
805798
"""Add a sync token to the internal list of tokens.
806799
807800
:param str token: The sync token to be added to the internal list of tokens
@@ -810,7 +803,6 @@ async def update_sync_token(self, token: str) -> None:
810803
await self._sync_token_policy.add_token(token)
811804

812805
async def close(self) -> None:
813-
814806
"""Close all connections made by the client"""
815807
await self._impl._client.close()
816808

sdk/appconfiguration/azure-mgmt-appconfiguration/setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@
2222

2323
# Version extraction inspired from 'requests'
2424
with open(
25-
os.path.join(package_folder_path, "version.py")
26-
if os.path.exists(os.path.join(package_folder_path, "version.py"))
27-
else os.path.join(package_folder_path, "_version.py"),
25+
(
26+
os.path.join(package_folder_path, "version.py")
27+
if os.path.exists(os.path.join(package_folder_path, "version.py"))
28+
else os.path.join(package_folder_path, "_version.py")
29+
),
2830
"r",
2931
) as fd:
3032
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)

0 commit comments

Comments
 (0)