Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet committed Jan 17, 2025
1 parent 8aaeff1 commit 190f9dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/abstractions/kiota_abstractions/date_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def datetime_from_iso_format_compat(text: str) -> datetime:
# Python 3.10 and below only support fractions of seconds in either 3 or 6 digits
# Python 3.11+ supports any number of digits

if (sys_version_info[:3] <= (3, 10)):
if sys_version_info[:3] <= (3, 10):
# The following code is a workaround for Python 3.10 and below
fixed_time = re.sub(
_TIME_REPLACEMENT_PATTERN, lambda x: x.group(1) + x.group(2).ljust(6, '0')[:6], text
Expand All @@ -107,7 +107,7 @@ def time_from_iso_format_compat(text: str) -> time:
# Python 3.10 and below only support fractions of seconds in either 3 or 6 digits
# Python 3.11+ supports any number of digits

if (sys_version_info[:3] <= (3, 10)):
if sys_version_info[:3] <= (3, 10):
# The following code is a workaround for Python 3.10 and below
fixed_time = re.sub(
_TIME_REPLACEMENT_PATTERN, lambda x: x.group(1) + x.group(2).ljust(6, '0')[:6], text
Expand Down

0 comments on commit 190f9dd

Please sign in to comment.