Skip to content

Commit 0ec9e31

Browse files
committed
Merge branch 'master' into sh_merge_master
2 parents 203cc26 + 023b3f3 commit 0ec9e31

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ repos:
3333

3434
# Upgrade old Python syntax
3535
- repo: https://github.com/asottile/pyupgrade
36-
rev: "v2.34.0"
36+
rev: "v2.37.1"
3737
hooks:
3838
- id: pyupgrade
3939
args: [--py36-plus]
@@ -73,7 +73,7 @@ repos:
7373

7474
# Autoremoves unused imports
7575
- repo: https://github.com/hadialqattan/pycln
76-
rev: "v1.3.5"
76+
rev: "v2.0.1"
7777
hooks:
7878
- id: pycln
7979
stages: [manual]

include/pybind11/cast.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ unpacking_collector<policy> collect_arguments(Args &&...args) {
16531653
template <typename Derived>
16541654
template <return_value_policy policy, typename... Args>
16551655
object object_api<Derived>::operator()(Args &&...args) const {
1656-
#if defined(PYBIND11_DETAILED_ERROR_MESSAGES)
1656+
#ifndef NDEBUG
16571657
if (!PyGILState_Check()) {
16581658
pybind11_fail("pybind11::object_api<>::operator() PyGILState_Check() failure.");
16591659
}

0 commit comments

Comments
 (0)