Skip to content

Commit

Permalink
Merge pull request #166 from numba/renovate/psf-black-25.x
Browse files Browse the repository at this point in the history
Update pre-commit hook psf/black to v25
  • Loading branch information
esc authored Feb 3, 2025
2 parents cafcbd0 + b8f1106 commit bae1812
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
args: ["--py38-plus"]
# Black
- repo: https://github.com/psf/black
rev: 24.10.0
rev: 25.1.0
hooks:
- id: black
language_version: python3
Expand Down
2 changes: 1 addition & 1 deletion numba_rvsdg/core/datastructures/ast_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


def unparse_code(
code: str | list[ast.FunctionDef] | Callable[..., Any]
code: str | list[ast.FunctionDef] | Callable[..., Any],
) -> list[type[ast.AST]]:
# Convert source code into AST.
if isinstance(code, str):
Expand Down
4 changes: 2 additions & 2 deletions numba_rvsdg/core/datastructures/scfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ def from_yaml(yaml_string: str) -> "Tuple[SCFG, Dict[str, str]]":

@staticmethod
def from_dict(
graph_dict: Dict[str, Dict[str, List[str]]]
graph_dict: Dict[str, Dict[str, List[str]]],
) -> Tuple["SCFG", Dict[str, str]]:
"""Static method that creates an SCFG object from a dictionary
representation.
Expand Down Expand Up @@ -967,7 +967,7 @@ def from_yaml(yaml_string: str) -> Tuple["SCFG", Dict[str, str]]:

@staticmethod
def from_dict(
graph_dict: Dict[str, Dict[str, Any]]
graph_dict: Dict[str, Dict[str, Any]],
) -> "Tuple[SCFG, Dict[str, str]]":
"""Static method that creates an SCFG object from a dictionary
representation.
Expand Down

0 comments on commit bae1812

Please sign in to comment.