code: def update_forward_refs(cls, **localns: Any) -> None:
          
          globalns = sys.modules[cls.__module__].__dict__
          globalns.setdefault(cls.__name__, cls)
          for f in cls.__fields__.values():
              update_field_forward_refs(f, globalns=globalns, localns=localns)
docs: Try to update ForwardRefs on fields based on this Model, globalns and localns.