Mercurial > libervia-backend
diff libervia/backend/plugins/plugin_xep_0131.py @ 4384:33468e175ade
backend: various fixes, and type hints improvments.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 03 Aug 2025 23:36:22 +0200 |
parents | 1bedcc6712e9 |
children |
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0131.py Sun Aug 03 23:35:21 2025 +0200 +++ b/libervia/backend/plugins/plugin_xep_0131.py Sun Aug 03 23:36:22 2025 +0200 @@ -101,7 +101,7 @@ def to_element(self) -> domish.Element: """Build the <headers> element from this instance's data.""" headers_elt = domish.Element((NS_SHIM, "headers")) - header_names = list(self.model_fields.keys()) + list( + header_names = list(self.__class__.model_fields.keys()) + list( self.__pydantic_extra__.keys() ) for name in header_names: