Skip to content

Commit

Permalink
apply code suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Nov 13, 2023
1 parent b536834 commit 26d0128
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nf_core/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import logging
import re
from pathlib import Path
from typing import Union
from typing import List, Union

import rich.console

Expand Down Expand Up @@ -42,7 +42,7 @@ def bump_pipeline_version(pipeline_obj: Pipeline, new_version: str) -> None:
[
(
rf"(version\s*=\s*['\"]){re.escape(current_version)}(['\"])",
rf"\g<1>{new_version}\g<2>",
rf"\g<1>{new_version}",
)
],
)
Expand Down Expand Up @@ -140,7 +140,7 @@ def bump_nextflow_version(pipeline_obj: Pipeline, new_version: str) -> None:
)


def update_file_version(filename: Union[str, Path], pipeline_obj: Pipeline, patterns: list[tuple[str, str]]) -> None:
def update_file_version(filename: Union[str, Path], pipeline_obj: Pipeline, patterns: List[tuple[str, str]]) -> None:
"""Updates the version number in a requested file.
Args:
Expand Down

0 comments on commit 26d0128

Please sign in to comment.