Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 24.2.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.5.1
hooks:
- id: black
7 changes: 4 additions & 3 deletions src/cmake_parser/_internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"""
Internal utility functions
"""

from functools import wraps
from warnings import warn
from typing import ParamSpec, TypeVar
Expand All @@ -25,9 +26,9 @@
_T = TypeVar("_T")


def deprecated_alias[
_T, **_P
](new_func: Callable[_P, _T]) -> Callable[[Callable[_P, _T]], Callable[_P, _T]]:
def deprecated_alias[_T, **_P](
new_func: Callable[_P, _T],
) -> Callable[[Callable[_P, _T]], Callable[_P, _T]]:
def deprecated_alias_impl(old_func: Callable[_P, _T]) -> Callable[_P, _T]:
@wraps(new_func)
def wrapper(*args: _P.args, **kwargs: _P.kwargs) -> _T:
Expand Down
1 change: 1 addition & 0 deletions src/cmake_parser/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
:func:`~cmake_parser.parser.parse_raw` and
:func:`~cmake_parser.parser.parse_tree`.
"""

from dataclasses import dataclass
from collections.abc import Generator
from .lexer import Token
Expand Down
1 change: 1 addition & 0 deletions src/cmake_parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"""
Core functionality for parsing CMake code.
"""

import re
from functools import partial
from collections.abc import Callable
Expand Down