Skip to content

Commit b0f715a

Browse files
committed
Merge branch 'master' into sh_merge_master
2 parents 5ed381d + 3fb16ad commit b0f715a

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/pip.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
- uses: actions/download-artifact@v4
104104

105105
- name: Generate artifact attestation for sdist and wheel
106-
uses: actions/attest-build-provenance@310b0a4a3b0b78ef57ecda988ee04b132db73ef8 # v1.4.1
106+
uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
107107
with:
108108
subject-path: "*/pybind11*"
109109

include/pybind11/typing.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ class Never : public none {
100100
using none::none;
101101
};
102102

103-
#if defined(__cpp_nontype_template_parameter_class) \
104-
&& (/* See #5201 */ !defined(__GNUC__) \
105-
|| (__GNUC__ > 10 || (__GNUC__ == 10 && __GNUC_MINOR__ >= 3)))
103+
#if defined(__cpp_nontype_template_args) && __cpp_nontype_template_args >= 201911L
106104
# define PYBIND11_TYPING_H_HAS_STRING_LITERAL
107105
template <size_t N>
108106
struct StringLiteral {

tests/test_pytypes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ def test_optional_object_annotations(doc):
10261026

10271027
@pytest.mark.skipif(
10281028
not m.defined_PYBIND11_TYPING_H_HAS_STRING_LITERAL,
1029-
reason="C++20 feature not available.",
1029+
reason="C++20 non-type template args feature not available.",
10301030
)
10311031
def test_literal(doc):
10321032
assert (
@@ -1037,7 +1037,7 @@ def test_literal(doc):
10371037

10381038
@pytest.mark.skipif(
10391039
not m.defined_PYBIND11_TYPING_H_HAS_STRING_LITERAL,
1040-
reason="C++20 feature not available.",
1040+
reason="C++20 non-type template args feature not available.",
10411041
)
10421042
def test_typevar(doc):
10431043
assert (

0 commit comments

Comments
 (0)