Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Release History

- Fixes `#62 <https://github.com/dfop02/html4docx/issues/62>`_ : `tag_style_override` not applying custom styles from a Word template. | `dfop02 <https://github.com/dfop02>`_
- Handle invalid rowspan and colspan values in tables. | `dfop02 <https://github.com/dfop02>`_ inspired by `PR #56 <https://github.com/dfop02/html4docx/pull/56>`_ from `kko-harvey <https://github.com/kko-harvey>`_ .
- Fixes `#67 <https://github.com/dfop02/html4docx/issues/67>`_: built-in typing was not supported by old python versions. | `dfop02 <https://github.com/dfop02>`_

**New Features**

Expand Down
3 changes: 2 additions & 1 deletion html4docx/h4d.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import re
from io import BytesIO
from html.parser import HTMLParser
from typing import Dict, Any

import docx
from bs4 import BeautifulSoup
Expand Down Expand Up @@ -64,7 +65,7 @@ def set_initial_attrs(self, document=None):
self.pending_important_styles = None

@property
def metadata(self) -> dict[str, any]:
def metadata(self) -> Dict[str, Any]:
if not hasattr(self, '_metadata'):
self._metadata = Metadata(self.doc)
return self._metadata
Expand Down