Merge branch 'pybind:master' into master

This commit is contained in:
Steve R. Sun 2022-07-13 09:28:55 +08:00 committed by GitHub
commit 17f60cb95a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ repos:
# Upgrade old Python syntax
- repo: https://github.com/asottile/pyupgrade
rev: "v2.34.0"
rev: "v2.37.1"
hooks:
- id: pyupgrade
args: [--py36-plus]
@ -71,7 +71,7 @@ repos:
# Autoremoves unused imports
- repo: https://github.com/hadialqattan/pycln
rev: "v1.3.5"
rev: "v2.0.1"
hooks:
- id: pycln
stages: [manual]

View File

@ -1625,7 +1625,7 @@ unpacking_collector<policy> collect_arguments(Args &&...args) {
template <typename Derived>
template <return_value_policy policy, typename... Args>
object object_api<Derived>::operator()(Args &&...args) const {
#if defined(PYBIND11_DETAILED_ERROR_MESSAGES)
#ifndef NDEBUG
if (!PyGILState_Check()) {
pybind11_fail("pybind11::object_api<>::operator() PyGILState_Check() failure.");
}