MCPcopy
hub / github.com/pydantic/pydantic / set_values_dict

Method set_values_dict

pydantic/v1/mypy.py:772–773  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

770 self.has_alias_generator = has_alias_generator
771
772 def set_values_dict(self) -> Dict[str, Any]:
773 return {k: v for k, v in self.__dict__.items() if v is not None}
774
775 def update(self, config: Optional['ModelConfigData']) -> None:
776 if config is None:

Callers 2

transformMethod · 0.80
updateMethod · 0.80

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected