Skip to content

Commit 0d8dd45

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 33b1bb5 commit 0d8dd45

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/cmake_parser/_internal.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"""
1717
Internal utility functions
1818
"""
19+
1920
from functools import wraps
2021
from warnings import warn
2122
from typing import ParamSpec, TypeVar
@@ -25,9 +26,9 @@
2526
_T = TypeVar("_T")
2627

2728

28-
def deprecated_alias[
29-
_T, **_P
30-
](new_func: Callable[_P, _T]) -> Callable[[Callable[_P, _T]], Callable[_P, _T]]:
29+
def deprecated_alias[_T, **_P](
30+
new_func: Callable[_P, _T],
31+
) -> Callable[[Callable[_P, _T]], Callable[_P, _T]]:
3132
def deprecated_alias_impl(old_func: Callable[_P, _T]) -> Callable[_P, _T]:
3233
@wraps(new_func)
3334
def wrapper(*args: _P.args, **kwargs: _P.kwargs) -> _T:

src/cmake_parser/ast.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
:func:`~cmake_parser.parser.parse_raw` and
1919
:func:`~cmake_parser.parser.parse_tree`.
2020
"""
21+
2122
from dataclasses import dataclass
2223
from collections.abc import Generator
2324
from .lexer import Token

src/cmake_parser/parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"""
1616
Core functionality for parsing CMake code.
1717
"""
18+
1819
import re
1920
from functools import partial
2021
from collections.abc import Callable

0 commit comments

Comments
 (0)