Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jul 26, 2024
1 parent 2567f44 commit 8214dad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/pybind11/typing.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ class TypeVarObject : public object {
using object::object;
TypeVarObject(const char *name) {
attr("__name__") = name;
attr("__bound__") = object()
attr("__bound__").attr("__name__") = pybind11::detail::make_caster<T>::name;
attr("__bound__") = object() attr("__bound__").attr("__name__")
= pybind11::detail::make_caster<T>::name;
attr("__constraints__") = pybind11::make_tuple();
}
// TypeVarObject(const char *name, py::typing::Tuple<pybind11::type, pybind11::ellipse> tuple){
Expand Down
1 change: 0 additions & 1 deletion tests/test_pytypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,6 @@ def test_typevar_object():
assert type_var.__bound__ == None
assert type_var.__constraints__ == ()


assert len(m.TypeVarObjectBound.__type_params__) == 1
type_var = m.TypeVarObjectBound.__type_params__[0]
assert type_var.__name__ == "T"
Expand Down

0 comments on commit 8214dad

Please sign in to comment.