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 Dec 12, 2024
1 parent e108cdf commit 97c0414
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/test_pytypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -970,13 +970,12 @@ TEST_SUBMODULE(pytypes, m) {
.value("BLUE", literals::Color::BLUE);

m.def("annotate_complete_literal", [](literals::LiteralFoo &o) -> py::object { return o; });

m.def("literal_test", [](py::typing::Literal<"hi"> &o) -> py::object { return o; })

m.def("annotate_generic_containers",
[](const py::typing::List<typevar::TypeVarT> &l) -> py::typing::List<typevar::TypeVarV> {
return l;
});

m.def("annotate_generic_containers",
[](const py::typing::List<typevar::TypeVarT> &l)
-> py::typing::List<typevar::TypeVarV> { return l; });

m.def("annotate_listT_to_T",
[](const py::typing::List<typevar::TypeVarT> &l) -> typevar::TypeVarT { return l[0]; });
Expand Down

0 comments on commit 97c0414

Please sign in to comment.