From f00bfe08250a0b9effae4581d19e579dba0f5abd Mon Sep 17 00:00:00 2001 From: Sergei Izmailov Date: Sat, 21 Oct 2023 10:10:43 +0900 Subject: [PATCH 1/2] chore: Update stubs after pybind11 update --- .../python-3.11/pybind11-master/demo/_bindings/stl_bind.pyi | 4 ++-- .../python-3.7/pybind11-master/demo/_bindings/stl_bind.pyi | 4 ++-- .../python-3.8/pybind11-master/demo/_bindings/stl_bind.pyi | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/stl_bind.pyi b/tests/stubs/python-3.11/pybind11-master/demo/_bindings/stl_bind.pyi index c6bb21c..c39135b 100644 --- a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/stl_bind.pyi +++ b/tests/stubs/python-3.11/pybind11-master/demo/_bindings/stl_bind.pyi @@ -21,7 +21,7 @@ class MapStringComplex: def __delitem__(self, arg0: str) -> None: ... def __getitem__(self, arg0: str) -> complex: ... def __init__(self) -> None: ... - def __iter__(self) -> typing.Iterator: ... + def __iter__(self) -> typing.Iterator[str]: ... def __len__(self) -> int: ... def __repr__(self) -> str: """ @@ -69,7 +69,7 @@ class VectorPairStringDouble: """ @typing.overload def __init__(self, arg0: typing.Iterable) -> None: ... - def __iter__(self) -> typing.Iterator: ... + def __iter__(self) -> typing.Iterator[tuple[str, float]]: ... def __len__(self) -> int: ... def __ne__(self, arg0: VectorPairStringDouble) -> bool: ... @typing.overload diff --git a/tests/stubs/python-3.7/pybind11-master/demo/_bindings/stl_bind.pyi b/tests/stubs/python-3.7/pybind11-master/demo/_bindings/stl_bind.pyi index c6bb21c..c39135b 100644 --- a/tests/stubs/python-3.7/pybind11-master/demo/_bindings/stl_bind.pyi +++ b/tests/stubs/python-3.7/pybind11-master/demo/_bindings/stl_bind.pyi @@ -21,7 +21,7 @@ class MapStringComplex: def __delitem__(self, arg0: str) -> None: ... def __getitem__(self, arg0: str) -> complex: ... def __init__(self) -> None: ... - def __iter__(self) -> typing.Iterator: ... + def __iter__(self) -> typing.Iterator[str]: ... def __len__(self) -> int: ... def __repr__(self) -> str: """ @@ -69,7 +69,7 @@ class VectorPairStringDouble: """ @typing.overload def __init__(self, arg0: typing.Iterable) -> None: ... - def __iter__(self) -> typing.Iterator: ... + def __iter__(self) -> typing.Iterator[tuple[str, float]]: ... def __len__(self) -> int: ... def __ne__(self, arg0: VectorPairStringDouble) -> bool: ... @typing.overload diff --git a/tests/stubs/python-3.8/pybind11-master/demo/_bindings/stl_bind.pyi b/tests/stubs/python-3.8/pybind11-master/demo/_bindings/stl_bind.pyi index c6bb21c..c39135b 100644 --- a/tests/stubs/python-3.8/pybind11-master/demo/_bindings/stl_bind.pyi +++ b/tests/stubs/python-3.8/pybind11-master/demo/_bindings/stl_bind.pyi @@ -21,7 +21,7 @@ class MapStringComplex: def __delitem__(self, arg0: str) -> None: ... def __getitem__(self, arg0: str) -> complex: ... def __init__(self) -> None: ... - def __iter__(self) -> typing.Iterator: ... + def __iter__(self) -> typing.Iterator[str]: ... def __len__(self) -> int: ... def __repr__(self) -> str: """ @@ -69,7 +69,7 @@ class VectorPairStringDouble: """ @typing.overload def __init__(self, arg0: typing.Iterable) -> None: ... - def __iter__(self) -> typing.Iterator: ... + def __iter__(self) -> typing.Iterator[tuple[str, float]]: ... def __len__(self) -> int: ... def __ne__(self, arg0: VectorPairStringDouble) -> bool: ... @typing.overload From a90c0e1040eb34eade410ae98eabc7f760e5c8bd Mon Sep 17 00:00:00 2001 From: Sergei Izmailov Date: Sat, 21 Oct 2023 10:24:58 +0900 Subject: [PATCH 2/2] chore: Add Python 3.12 to test matrix --- .github/workflows/ci.yml | 1 + tests/stubs/python-3.11 | 1 + .../pybind11-master/demo/__init__.pyi | 0 .../pybind11-master/demo/_bindings/__init__.pyi | 0 .../pybind11-master/demo/_bindings/aliases/__init__.pyi | 0 .../pybind11-master/demo/_bindings/aliases/foreign_arg.pyi | 0 .../pybind11-master/demo/_bindings/aliases/foreign_attr.pyi | 0 .../demo/_bindings/aliases/foreign_class_member.pyi | 0 .../demo/_bindings/aliases/foreign_method_arg.pyi | 0 .../demo/_bindings/aliases/foreign_method_return.pyi | 0 .../pybind11-master/demo/_bindings/aliases/foreign_return.pyi | 0 .../pybind11-master/demo/_bindings/classes.pyi | 0 .../pybind11-master/demo/_bindings/eigen.pyi | 0 .../pybind11-master/demo/_bindings/enum.pyi | 0 .../pybind11-master/demo/_bindings/flawed_bindings.pyi | 0 .../pybind11-master/demo/_bindings/functions.pyi | 0 .../pybind11-master/demo/_bindings/issues.pyi | 0 .../pybind11-master/demo/_bindings/methods.pyi | 0 .../pybind11-master/demo/_bindings/numpy.pyi | 0 .../pybind11-master/demo/_bindings/properties.pyi | 0 .../pybind11-master/demo/_bindings/stl.pyi | 0 .../pybind11-master/demo/_bindings/stl_bind.pyi | 0 .../pybind11-master/demo/_bindings/typing.pyi | 0 .../pybind11-master/demo/_bindings/values.pyi | 0 .../{python-3.11 => python-3.12}/pybind11-master/demo/core.pyi | 0 .../pybind11-master/demo/pure_python/__init__.pyi | 0 .../pybind11-master/demo/pure_python/classes.pyi | 0 .../pybind11-master/demo/pure_python/functions.pyi | 0 .../pybind11-master/demo/pure_python/functions_3_8_plus.pyi | 0 .../pybind11-master/demo/pure_python/functions_3_9_plus.pyi | 0 .../pybind11-master/demo/pure_python/values.pyi | 0 tests/stubs/{python-3.11 => python-3.12}/requirements.txt | 0 tests/stubs/python-3.9 | 2 +- 33 files changed, 3 insertions(+), 1 deletion(-) create mode 120000 tests/stubs/python-3.11 rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/__init__.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/__init__.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/aliases/__init__.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/aliases/foreign_arg.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/aliases/foreign_attr.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/aliases/foreign_class_member.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/aliases/foreign_method_arg.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/aliases/foreign_method_return.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/aliases/foreign_return.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/classes.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/eigen.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/enum.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/flawed_bindings.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/functions.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/issues.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/methods.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/numpy.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/properties.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/stl.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/stl_bind.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/typing.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/_bindings/values.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/core.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/pure_python/__init__.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/pure_python/classes.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/pure_python/functions.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/pure_python/functions_3_8_plus.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/pure_python/functions_3_9_plus.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/pybind11-master/demo/pure_python/values.pyi (100%) rename tests/stubs/{python-3.11 => python-3.12}/requirements.txt (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c1c751..1fc163d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,6 +43,7 @@ jobs: matrix: pybind11-branch: [ "master" ] python: + - "3.12" - "3.11" - "3.10" - "3.9" diff --git a/tests/stubs/python-3.11 b/tests/stubs/python-3.11 new file mode 120000 index 0000000..0a8325a --- /dev/null +++ b/tests/stubs/python-3.11 @@ -0,0 +1 @@ +python-3.12 \ No newline at end of file diff --git a/tests/stubs/python-3.11/pybind11-master/demo/__init__.pyi b/tests/stubs/python-3.12/pybind11-master/demo/__init__.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/__init__.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/__init__.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/__init__.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/__init__.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/__init__.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/__init__.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/aliases/__init__.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/aliases/__init__.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/aliases/__init__.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/aliases/__init__.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/aliases/foreign_arg.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/aliases/foreign_arg.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/aliases/foreign_arg.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/aliases/foreign_arg.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/aliases/foreign_attr.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/aliases/foreign_attr.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/aliases/foreign_attr.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/aliases/foreign_attr.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/aliases/foreign_class_member.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/aliases/foreign_class_member.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/aliases/foreign_class_member.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/aliases/foreign_class_member.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/aliases/foreign_method_arg.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/aliases/foreign_method_arg.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/aliases/foreign_method_arg.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/aliases/foreign_method_arg.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/aliases/foreign_method_return.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/aliases/foreign_method_return.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/aliases/foreign_method_return.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/aliases/foreign_method_return.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/aliases/foreign_return.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/aliases/foreign_return.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/aliases/foreign_return.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/aliases/foreign_return.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/classes.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/classes.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/classes.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/classes.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/eigen.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/eigen.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/eigen.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/eigen.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/enum.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/enum.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/enum.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/enum.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/flawed_bindings.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/flawed_bindings.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/flawed_bindings.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/flawed_bindings.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/functions.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/functions.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/functions.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/functions.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/issues.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/issues.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/issues.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/issues.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/methods.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/methods.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/methods.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/methods.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/numpy.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/numpy.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/numpy.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/numpy.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/properties.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/properties.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/properties.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/properties.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/stl.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/stl.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/stl.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/stl.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/stl_bind.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/stl_bind.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/stl_bind.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/stl_bind.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/typing.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/typing.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/typing.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/typing.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/_bindings/values.pyi b/tests/stubs/python-3.12/pybind11-master/demo/_bindings/values.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/_bindings/values.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/_bindings/values.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/core.pyi b/tests/stubs/python-3.12/pybind11-master/demo/core.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/core.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/core.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/pure_python/__init__.pyi b/tests/stubs/python-3.12/pybind11-master/demo/pure_python/__init__.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/pure_python/__init__.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/pure_python/__init__.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/pure_python/classes.pyi b/tests/stubs/python-3.12/pybind11-master/demo/pure_python/classes.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/pure_python/classes.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/pure_python/classes.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/pure_python/functions.pyi b/tests/stubs/python-3.12/pybind11-master/demo/pure_python/functions.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/pure_python/functions.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/pure_python/functions.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/pure_python/functions_3_8_plus.pyi b/tests/stubs/python-3.12/pybind11-master/demo/pure_python/functions_3_8_plus.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/pure_python/functions_3_8_plus.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/pure_python/functions_3_8_plus.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/pure_python/functions_3_9_plus.pyi b/tests/stubs/python-3.12/pybind11-master/demo/pure_python/functions_3_9_plus.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/pure_python/functions_3_9_plus.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/pure_python/functions_3_9_plus.pyi diff --git a/tests/stubs/python-3.11/pybind11-master/demo/pure_python/values.pyi b/tests/stubs/python-3.12/pybind11-master/demo/pure_python/values.pyi similarity index 100% rename from tests/stubs/python-3.11/pybind11-master/demo/pure_python/values.pyi rename to tests/stubs/python-3.12/pybind11-master/demo/pure_python/values.pyi diff --git a/tests/stubs/python-3.11/requirements.txt b/tests/stubs/python-3.12/requirements.txt similarity index 100% rename from tests/stubs/python-3.11/requirements.txt rename to tests/stubs/python-3.12/requirements.txt diff --git a/tests/stubs/python-3.9 b/tests/stubs/python-3.9 index 08f3118..f31904f 120000 --- a/tests/stubs/python-3.9 +++ b/tests/stubs/python-3.9 @@ -1 +1 @@ -python-3.11 \ No newline at end of file +python-3.10 \ No newline at end of file