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 97% 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 index c6bb21c..c39135b 100644 --- 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 @@ -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.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.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 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