Update files to match v3.0 branch
diff --git a/.github/workflows/emscripten.yaml b/.github/workflows/emscripten.yaml deleted file mode 100644 index 14b2b9d..0000000 --- a/.github/workflows/emscripten.yaml +++ /dev/null
@@ -1,30 +0,0 @@ -name: WASM - -on: - workflow_dispatch: - pull_request: - branches: - - master - - stable - - v* - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build-wasm-emscripten: - name: Pyodide wheel - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v4 - with: - submodules: true - fetch-depth: 0 - - - uses: pypa/cibuildwheel@v2.20 - env: - PYODIDE_BUILD_EXPORTS: whole_archive - with: - package-dir: tests - only: cp312-pyodide_wasm32
diff --git a/.github/workflows/pip.yml b/.github/workflows/pip.yml index be68a05..f7a7349 100644 --- a/.github/workflows/pip.yml +++ b/.github/workflows/pip.yml
@@ -111,10 +111,8 @@ uses: pypa/gh-action-pypi-publish@release/v1 with: packages-dir: standard/ - attestations: true - name: Publish global package uses: pypa/gh-action-pypi-publish@release/v1 with: packages-dir: global/ - attestations: true
diff --git a/include/pybind11/detail/common.h b/include/pybind11/detail/common.h index cba16e1..6f3de41 100644 --- a/include/pybind11/detail/common.h +++ b/include/pybind11/detail/common.h
@@ -503,8 +503,6 @@ } \endrst */ -PYBIND11_WARNING_PUSH -PYBIND11_WARNING_DISABLE_CLANG("-Wgnu-zero-variadic-macro-arguments") #define PYBIND11_MODULE(name, variable, ...) \ PYBIND11_MODULE_PYINIT( \ name, (pybind11::detail::get_num_interpreters_seen() += 1), ##__VA_ARGS__) \
diff --git a/include/pybind11/functional.h b/include/pybind11/functional.h index 1b6b130..8f59f5f 100644 --- a/include/pybind11/functional.h +++ b/include/pybind11/functional.h
@@ -9,8 +9,6 @@ #pragma once -#define PYBIND11_HAS_TYPE_CASTER_STD_FUNCTION_SPECIALIZATIONS - #include "pybind11.h" #include <functional>
diff --git a/include/pybind11/typing.h b/include/pybind11/typing.h index 14db47d..1715026 100644 --- a/include/pybind11/typing.h +++ b/include/pybind11/typing.h
@@ -211,14 +211,6 @@ + const_name("]"); }; -template <typename Return> -struct handle_type_name<typing::Callable<Return(ellipsis)>> { - // PEP 484 specifies this syntax for defining only return types of callables - using retval_type = conditional_t<std::is_same<Return, void>::value, void_type, Return>; - static constexpr auto name - = const_name("Callable[..., ") + make_caster<retval_type>::name + const_name("]"); -}; - template <typename T> struct handle_type_name<typing::Type<T>> { static constexpr auto name = const_name("type[") + make_caster<T>::name + const_name("]");
diff --git a/tests/test_pytypes.py b/tests/test_pytypes.py index 84d44e3..a199d72 100644 --- a/tests/test_pytypes.py +++ b/tests/test_pytypes.py
@@ -980,13 +980,6 @@ ) -def test_fn_return_only(doc): - assert ( - doc(m.annotate_fn_only_return) - == "annotate_fn_only_return(arg0: Callable[..., int]) -> None" - ) - - def test_type_annotation(doc): assert ( doc(m.annotate_type) == "annotate_type(arg0: type[typing.SupportsInt]) -> type"