Skip to content

Commit f73fc67

Browse files
author
Kevin Vu te Laar
committed
binding stubs: add missing SPDX header
Also reformatted the stubs with pre-commit run on the `python:3.12.10-slim-bookworm` image that is also used in the pipeline. Running pre-commit within the Fedora dev image has different behavior. Signed-off-by: Kevin Vu te Laar <vu.te@rwth-aachen.de>
1 parent 66e1f14 commit f73fc67

2 files changed

Lines changed: 19 additions & 5 deletions

File tree

python/villas/node/binding.pyi

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
1+
"""
2+
@generated by mypy (partial). Manual edits applied for function decorators.
3+
isort:skip_file
4+
5+
Author: Kevin Vu te Laar <vu.te@rwth-aachen.de>
6+
SPDX-FileCopyrightText: 2014-2025 Institute for Automation of Complex Power Systems, RWTH Aachen University
7+
SPDX-License-Identifier: Apache-2.0
8+
"""
9+
110
from _typeshed import Incomplete
211
from typing import Any, Callable
312

413
logger: Incomplete
514

6-
715
class SamplesArray:
816
def __init__(self, length: int) -> None: ...
917
def __len__(self) -> int: ...
1018
def __getitem__(self, idx: int | slice): ...
1119
def __copy__(self) -> None: ...
1220
def __deepcopy__(self) -> None: ...
1321

14-
1522
def _warn_if_not_implemented(
1623
func: Callable[..., Any],
1724
) -> Callable[..., Any]: ...

python/villas/node/python_binding.pyi

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1+
"""
2+
@generated by mypy (partial). Manual edits applied for pybind11 binding.
3+
isort:skip_file
4+
5+
Author: Kevin Vu te Laar <vu.te@rwth-aachen.de>
6+
SPDX-FileCopyrightText: 2014-2025 Institute for Automation of Complex Power Systems, RWTH Aachen University
7+
SPDX-License-Identifier: Apache-2.0
8+
"""
9+
110
import typing
2-
from typing import Any, Callable, overload
11+
from typing import Any, overload
312

413
Array = Any
514
capsule = Any
615
timespec = Any
716

8-
917
class SamplesArray:
1018
def __init__(self, len: int) -> None: ...
1119
def bulk_alloc(self, arg0: int, arg1: int, arg2: int) -> None: ...
@@ -14,7 +22,6 @@ class SamplesArray:
1422
def __iter__(self) -> typing.Iterator[capsule]: ...
1523
def __setitem__(self, arg0: int, arg1: capsule) -> None: ...
1624

17-
1825
def memory_init(arg0: int) -> int: ...
1926
def node_check(arg0: capsule) -> int: ...
2027
def node_destroy(arg0: capsule) -> int: ...

0 commit comments

Comments
 (0)