Skip to content

Commit

Permalink
Merge pull request #30153 from rwgk/replace_pybind11k_with_pybind11clif
Browse files Browse the repository at this point in the history
Systematically replace all google/pybind11k with google/pybind11clif
  • Loading branch information
Ralf W. Grosse-Kunstleve authored Aug 26, 2024
2 parents e9b80a3 + 86e9f25 commit bd48d37
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -557,4 +557,4 @@ The ``name`` property returns the name of the enum value as a unicode string.
.. note::

``py::native_enum`` was added as an alternative to ``py::enum_``
with http://github.com/google/pybind11k/pull/30005
with http://github.com/google/pybind11clif/pull/30005
2 changes: 1 addition & 1 deletion include/pybind11/detail/class.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ inline bool ensure_base_init_functions_were_called(PyObject *self) {
return true;
}

// See google/pybind11k#30095 for background.
// See google/pybind11clif#30095 for background.
#if !defined(PYBIND11_INIT_SAFETY_CHECKS_VIA_INTERCEPTING_TP_INIT) \
&& !defined(PYBIND11_INIT_SAFETY_CHECKS_VIA_DEFAULT_PYBIND11_METACLASS)
# if !defined(PYPY_VERSION)
Expand Down
2 changes: 1 addition & 1 deletion include/pybind11/detail/function_record_pyobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// For background see the description of PR google/pybind11k#30099.
// For background see the description of PR google/pybind11clif#30099.

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion include/pybind11/pybind11.h
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ class cpp_function : public function {
if (rec->name == nullptr) {
rec->name = guarded_strdup("");
} else if (std::strcmp(rec->name, "__setstate__[non-constructor]") == 0) {
// See google/pybind11k#30094 for background.
// See google/pybind11clif#30094 for background.
rec->name = guarded_strdup("__setstate__");
} else {
rec->name = guarded_strdup(rec->name);
Expand Down
4 changes: 2 additions & 2 deletions tests/test_pickling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void wrap(py::module m) {

namespace exercise_getinitargs_getstate_setstate {

// Exercise `__setstate__[non-constructor]` (see google/pybind11k#30094), which
// Exercise `__setstate__[non-constructor]` (see google/pybind11clif#30094), which
// was added to support a pickle protocol as established with Boost.Python
// (in 2002):
// https://www.boost.org/doc/libs/1_31_0/libs/python/doc/v2/pickle.html
Expand Down Expand Up @@ -103,7 +103,7 @@ void wrap(py::module m) {
},
py::arg("protocol") = -1)
.def(
"__setstate__[non-constructor]", // See google/pybind11k#30094 for background.
"__setstate__[non-constructor]", // See google/pybind11clif#30094 for background.
[](StoreTwoWithState *self, const std::string &state) { self->SetState(state); },
py::arg("state"));
}
Expand Down

0 comments on commit bd48d37

Please sign in to comment.