File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,9 @@ class gil_scoped_release {
130
130
auto &internals = detail::get_internals ();
131
131
tstate = PyEval_SaveThread ();
132
132
if (disassoc) {
133
- auto *key = internals.tstate ;
133
+ // Python >= 3.7 can remove this, it's an int before 3.7
134
+ // NOLINTNEXTLINE(readability-qualified-auto)
135
+ auto key = internals.tstate ;
134
136
PYBIND11_TLS_DELETE_VALUE (key);
135
137
}
136
138
}
@@ -149,7 +151,9 @@ class gil_scoped_release {
149
151
if (active)
150
152
PyEval_RestoreThread (tstate);
151
153
if (disassoc) {
152
- auto *key = detail::get_internals ().tstate ;
154
+ // Python >= 3.7 can remove this, it's an int before 3.7
155
+ // NOLINTNEXTLINE(readability-qualified-auto)
156
+ auto key = detail::get_internals ().tstate ;
153
157
PYBIND11_TLS_REPLACE_VALUE (key, tstate);
154
158
}
155
159
}
You can’t perform that action at this time.
0 commit comments