Skip to content

Commit

Permalink
Switch variable name away from macro
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
  • Loading branch information
InvincibleRMC committed Feb 22, 2025
1 parent ecb8450 commit 8270cef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/pybind11/cast.h
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ str_attr_accessor object_api<D>::attr_with_type_hint(const char *key) const {
const char *text = make_caster<T>::name.text;

size_t unused = 0;
ann[key] = generate_signature(text, 0, 0, unused, unused, true);
ann[key] = generate_signature(text, nullptr, nullptr, unused, unused, true);
return {derived(), key};
}

Expand Down
2 changes: 1 addition & 1 deletion include/pybind11/pybind11.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ inline std::string generate_signature(const char *text,
const std::type_info *const *types,
size_t &type_index,
size_t &arg_index,
const bool is_annotation = false) {
bool is_annotation = false) {
std::string signature;
bool is_starred = false;
// `is_return_value.top()` is true if we are currently inside the return type of the
Expand Down

0 comments on commit 8270cef

Please sign in to comment.