Remove dead ServiceSettings.to_dict method

This commit is contained in:
Paul Kompfner
2026-02-17 15:15:18 -05:00
parent 1cad4210ce
commit 94a651cee2
2 changed files with 0 additions and 16 deletions

View File

@@ -228,18 +228,6 @@ class ServiceSettings:
instance.extra = extra
return instance
def to_dict(self) -> Dict[str, Any]:
"""Serialize to a flat dictionary, including extra.
Only given (non-``NOT_GIVEN``) values are included. This is the
inverse of ``from_mapping`` and useful for passing settings to APIs
that expect plain dicts.
Returns:
A flat dictionary of all given settings.
"""
return self.given_fields()
def copy(self: _S) -> _S:
"""Return a deep copy of this settings instance.