We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
anyset
set | frozenset
1 parent 70a510c commit ace70b0Copy full SHA for ace70b0
include/pybind11/cast.h
@@ -889,7 +889,7 @@ struct handle_type_name<dict> {
889
};
890
template <>
891
struct handle_type_name<anyset> {
892
- static constexpr auto name = const_name("set");
+ static constexpr auto name = const_name("set | frozenset");
893
894
895
struct handle_type_name<set> {
tests/test_pytypes.py
@@ -121,7 +121,7 @@ def test_set(capture, doc):
121
assert m.anyset_contains({"foo"}, "foo")
122
123
assert doc(m.get_set) == "get_set() -> set"
124
- assert doc(m.print_anyset) == "print_anyset(arg0: set) -> None"
+ assert doc(m.print_anyset) == "print_anyset(arg0: set | frozenset) -> None"
125
126
127
def test_frozenset(capture, doc):
0 commit comments