MCPcopy
hub / github.com/pydantic/pydantic / tuple_positional_schema

Method tuple_positional_schema

pydantic/json_schema.py:973–980  ·  view source on GitHub ↗

Replaced by `tuple_schema`.

(self, schema: core_schema.TupleSchema)

Source from the content-addressed store, hash-verified

971 @deprecated('`tuple_positional_schema` is deprecated. Use `tuple_schema` instead.', category=None)
972 @final
973 def tuple_positional_schema(self, schema: core_schema.TupleSchema) -> JsonSchemaValue:
974 """Replaced by `tuple_schema`."""
975 warnings.warn(
976 '`tuple_positional_schema` is deprecated. Use `tuple_schema` instead.',
977 PydanticDeprecatedSince26,
978 stacklevel=2,
979 )
980 return self.tuple_schema(schema)
981
982 @deprecated('`tuple_variable_schema` is deprecated. Use `tuple_schema` instead.', category=None)
983 @final

Callers 15

test_loc_with_dotsFunction · 0.80
test_tuple_pos_dict_keyFunction · 0.80
test_repeated_refFunction · 0.80
test_repeat_afterFunction · 0.80
test_use_afterFunction · 0.80
test_listFunction · 0.80
test_set_frozensetFunction · 0.80
test_tuple_listFunction · 0.80
test_dict_keyFunction · 0.80
test_repeated_refFunction · 0.80

Calls 1

tuple_schemaMethod · 0.95

Tested by 15

test_loc_with_dotsFunction · 0.64
test_tuple_pos_dict_keyFunction · 0.64
test_repeated_refFunction · 0.64
test_repeat_afterFunction · 0.64
test_use_afterFunction · 0.64
test_listFunction · 0.64
test_set_frozensetFunction · 0.64
test_tuple_listFunction · 0.64
test_dict_keyFunction · 0.64
test_repeated_refFunction · 0.64