MCPcopy
hub / github.com/pydantic/pydantic / update_forward_refs

Method update_forward_refs

pydantic/main.py:1633–1641  ·  view source on GitHub ↗
(cls, **localns: Any)

Source from the content-addressed store, hash-verified

1631 category=None,
1632 )
1633 def update_forward_refs(cls, **localns: Any) -> None: # noqa: D102
1634 warnings.warn(
1635 'The `update_forward_refs` method is deprecated; use `model_rebuild` instead.',
1636 category=PydanticDeprecatedSince20,
1637 stacklevel=2,
1638 )
1639 if localns: # pragma: no cover
1640 raise TypeError('`localns` arguments are not longer accepted.')
1641 cls.model_rebuild(force=True)
1642
1643 @typing_extensions.deprecated(
1644 'The private method `_iter` will be removed and should no longer be used.', category=None

Callers 1

test_update_forward_refsFunction · 0.45

Calls 1

model_rebuildMethod · 0.80

Tested by 1

test_update_forward_refsFunction · 0.36