Skip to content

Commit 93d9f8f

Browse files
committed
fix lint
Signed-off-by: Nurgaleev_Mansur_908 <mansur0158@gmail.com>
1 parent 53ac05d commit 93d9f8f

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

examples/manual_repo/basic_repo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747

4848
def _in(days: float) -> datetime:
4949
"""Adds 'days' to now and returns datetime object w/o microseconds."""
50-
return datetime.now(timezone.utc).replace(microsecond=0) + timedelta(days=days)
50+
return (datetime.now(timezone.utc).replace(microsecond=0) +
51+
timedelta(days=days))
5152

5253

5354
# Create top-level metadata

examples/manual_repo/hashed_bin_delegation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838

3939
def _in(days: float) -> datetime:
4040
"""Adds 'days' to now and returns datetime object w/o microseconds."""
41-
return datetime.now(timezone.utc).replace(microsecond=0) + timedelta(days=days)
41+
return (datetime.now(timezone.utc).replace(microsecond=0) +
42+
timedelta(days=days))
4243

4344

4445
roles: Dict[str, Metadata[Targets]] = {}

examples/manual_repo/succinct_hash_bin_delegations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ def create_key() -> Tuple[Key, SSlibSigner]:
9999
# NOTE: See "Targets" and "Targets delegation" paragraphs in 'basic_repo.py'
100100
# example for more details about the Targets object.
101101

102-
expiration_date = datetime.now(timezone.utc).replace(microsecond=0) + timedelta(days=7)
102+
expiration_date = (datetime.now(timezone.utc).replace(microsecond=0) +
103+
timedelta(days=7))
103104
targets = Metadata(Targets(expires=expiration_date))
104105

105106
succinct_roles = SuccinctRoles(

0 commit comments

Comments
 (0)