Skip to content

Commit

Permalink
More pylint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Treasure committed Feb 12, 2021
1 parent ce45bf5 commit 47b5fab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ async def __aexit__(self, exc_type, exc_value, traceback) -> None:

def _add_years(date_to_update, years):
try:
return date_to_update.replace(year = date_to_update.year + years)
return date_to_update.replace(year=date_to_update.year + years)
except ValueError:
return date_to_update + (date(date_to_update.year + years, 1, 1) - date(date_to_update.year, 1, 1))
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ def get_token(self, *scopes, **kwargs): #pylint: disable=unused-argument

def _add_years(date_to_update, years):
try:
return date_to_update.replace(year = date_to_update.year + years)
return date_to_update.replace(year=date_to_update.year + years)
except ValueError:
return date_to_update + (date(date_to_update.year + years, 1, 1) - date(date_to_update.year, 1, 1))
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def get_token(self, **kwargs) -> "AccessToken":
:rtype: :class:`azure.core.credentials.AccessToken`
"""
token_request_options = TokenRequestOptions()
token_request_options.client_request_id=generate_cv_base()
token_request_options.client_request_id = generate_cv_base()

response = await self._client.get_token(
self._account_id,
Expand Down

0 comments on commit 47b5fab

Please sign in to comment.