Lines Matching refs:UserType
4 from pybind11_tests import UserType, ConstructorStats
9 assert "pybind11_type" in repr(type(UserType))
10 assert "UserType" in repr(UserType)
27 assert doc(UserType) == "A `py::class_` type for testing"
28 assert UserType.__name__ == "UserType"
29 assert UserType.__module__ == "pybind11_tests"
30 assert UserType.get_value.__name__ == "get_value"
31 assert UserType.get_value.__module__ == "pybind11_tests"
33 assert doc(UserType.get_value) == """
34 get_value(self: m.UserType) -> int
38 assert doc(UserType.value) == "Get/set value using a property"
151 assert m.implicitly_convert_argument(UserType(5)) == 5
152 assert m.implicitly_convert_variable(UserType(5)) == 5
154 assert "outside a bound function" in m.implicitly_convert_variable_fail(UserType(5))