XlsxWriter 3.2.5__tar.gz → 3.2.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/Changes +18 -0
  2. {xlsxwriter-3.2.5/xlsxwriter.egg-info → xlsxwriter-3.2.6}/PKG-INFO +1 -1
  3. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/setup.py +1 -1
  4. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/__init__.py +1 -1
  5. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/app.py +22 -20
  6. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/chart.py +370 -423
  7. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/chart_area.py +5 -3
  8. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/chart_bar.py +7 -6
  9. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/chart_column.py +7 -5
  10. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/chart_doughnut.py +5 -5
  11. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/chart_line.py +7 -5
  12. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/chart_pie.py +12 -12
  13. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/chart_radar.py +6 -4
  14. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/chart_scatter.py +12 -11
  15. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/chart_stock.py +4 -4
  16. xlsxwriter-3.2.6/xlsxwriter/chart_title.py +110 -0
  17. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/chartsheet.py +13 -7
  18. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/color.py +2 -2
  19. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/comments.py +20 -18
  20. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/contenttypes.py +25 -25
  21. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/core.py +14 -14
  22. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/custom.py +10 -10
  23. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/drawing.py +75 -73
  24. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/feature_property_bag.py +9 -9
  25. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/format.py +105 -62
  26. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/image.py +7 -7
  27. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/metadata.py +15 -15
  28. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/packager.py +38 -38
  29. xlsxwriter-3.2.6/xlsxwriter/py.typed +1 -0
  30. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/relationships.py +9 -9
  31. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/rich_value.py +5 -5
  32. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/rich_value_rel.py +4 -4
  33. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/rich_value_structure.py +5 -5
  34. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/rich_value_types.py +5 -5
  35. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/shape.py +14 -13
  36. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/sharedstrings.py +7 -7
  37. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/styles.py +32 -32
  38. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/table.py +10 -10
  39. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/theme.py +4 -4
  40. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/url.py +9 -9
  41. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/vml.py +42 -42
  42. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/workbook.py +83 -51
  43. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/worksheet.py +409 -228
  44. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/xmlwriter.py +18 -18
  45. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6/xlsxwriter.egg-info}/PKG-INFO +1 -1
  46. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter.egg-info/SOURCES.txt +2 -0
  47. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/LICENSE.txt +0 -0
  48. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/MANIFEST.in +0 -0
  49. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/README.rst +0 -0
  50. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/array_formula.py +0 -0
  51. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/autofilter.py +0 -0
  52. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/autofilter_data.txt +0 -0
  53. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/autofit.py +0 -0
  54. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/autofit_manually.py +0 -0
  55. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/background.py +0 -0
  56. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/cell_indentation.py +0 -0
  57. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart.py +0 -0
  58. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_area.py +0 -0
  59. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_bar.py +0 -0
  60. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_clustered.py +0 -0
  61. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_column.py +0 -0
  62. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_combined.py +0 -0
  63. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_data_labels.py +0 -0
  64. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_data_table.py +0 -0
  65. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_data_tools.py +0 -0
  66. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_date_axis.py +0 -0
  67. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_doughnut.py +0 -0
  68. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_gauge.py +0 -0
  69. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_gradient.py +0 -0
  70. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_line.py +0 -0
  71. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_pareto.py +0 -0
  72. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_pattern.py +0 -0
  73. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_pie.py +0 -0
  74. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_radar.py +0 -0
  75. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_scatter.py +0 -0
  76. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_secondary_axis.py +0 -0
  77. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_stock.py +0 -0
  78. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chart_styles.py +0 -0
  79. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/chartsheet.py +0 -0
  80. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/check_close.py +0 -0
  81. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/checkbox.py +0 -0
  82. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/colors.py +0 -0
  83. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/comments1.py +0 -0
  84. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/comments2.py +0 -0
  85. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/conditional_format.py +0 -0
  86. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/context_manager.py +0 -0
  87. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/data_validate.py +0 -0
  88. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/datetimes.py +0 -0
  89. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/defined_name.py +0 -0
  90. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/demo.py +0 -0
  91. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/diagonal_border.py +0 -0
  92. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/django_simple.py +0 -0
  93. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/doc_properties.py +0 -0
  94. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/dynamic_arrays.py +0 -0
  95. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/embedded_images.py +0 -0
  96. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/headers_footers.py +0 -0
  97. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/hello_world.py +0 -0
  98. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/hide_row_col.py +0 -0
  99. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/hide_sheet.py +0 -0
  100. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/http_server.py +0 -0
  101. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/hyperlink.py +0 -0
  102. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/ignore_errors.py +0 -0
  103. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/images.py +0 -0
  104. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/images_bytesio.py +0 -0
  105. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/inheritance1.py +0 -0
  106. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/inheritance2.py +0 -0
  107. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/lambda.py +0 -0
  108. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/macros.py +0 -0
  109. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/merge1.py +0 -0
  110. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/merge_rich_string.py +0 -0
  111. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/outline.py +0 -0
  112. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/outline_collapsed.py +0 -0
  113. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/pandas_autofilter.py +0 -0
  114. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/pandas_chart.py +0 -0
  115. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/pandas_chart_columns.py +0 -0
  116. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/pandas_chart_line.py +0 -0
  117. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/pandas_column_formats.py +0 -0
  118. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/pandas_conditional_format.py +0 -0
  119. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/pandas_datetime.py +0 -0
  120. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/pandas_header_format.py +0 -0
  121. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/pandas_multiple.py +0 -0
  122. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/pandas_percentage.py +0 -0
  123. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/pandas_positioning.py +0 -0
  124. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/pandas_simple.py +0 -0
  125. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/pandas_table.py +0 -0
  126. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/panes.py +0 -0
  127. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/polars_chart.py +0 -0
  128. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/polars_checkbox.py +0 -0
  129. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/polars_conditional_format.py +0 -0
  130. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/polars_format_custom.py +0 -0
  131. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/polars_format_default.py +0 -0
  132. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/polars_multiple.py +0 -0
  133. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/polars_positioning.py +0 -0
  134. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/polars_simple.py +0 -0
  135. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/polars_sparklines.py +0 -0
  136. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/polars_xlsxwriter.py +0 -0
  137. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/rich_strings.py +0 -0
  138. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/right_to_left.py +0 -0
  139. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/sensitivity_label.py +0 -0
  140. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/sparklines1.py +0 -0
  141. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/sparklines2.py +0 -0
  142. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/tab_colors.py +0 -0
  143. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/tables.py +0 -0
  144. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/text_indent.py +0 -0
  145. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/textbox.py +0 -0
  146. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/tutorial1.py +0 -0
  147. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/tutorial2.py +0 -0
  148. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/tutorial3.py +0 -0
  149. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/unicode.py +0 -0
  150. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/unicode_polish_utf8.py +0 -0
  151. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/unicode_polish_utf8.txt +0 -0
  152. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/unicode_shift_jis.py +0 -0
  153. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/unicode_shift_jis.txt +0 -0
  154. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/user_types1.py +0 -0
  155. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/user_types2.py +0 -0
  156. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/user_types3.py +0 -0
  157. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/vbaProject.bin +0 -0
  158. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/vba_extract.py +0 -0
  159. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/watermark.py +0 -0
  160. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/examples/worksheet_protection.py +0 -0
  161. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/setup.cfg +0 -0
  162. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/exceptions.py +0 -0
  163. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter/utility.py +0 -0
  164. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter.egg-info/dependency_links.txt +0 -0
  165. {xlsxwriter-3.2.5 → xlsxwriter-3.2.6}/xlsxwriter.egg-info/top_level.txt +0 -0
@@ -1,3 +1,21 @@
1
+ Release 3.2.6 - September 12 2025
2
+ ---------------------------------
3
+
4
+ * Add the option to position custom data labels in the same way that the data
5
+ labels can be positioned for the entire series.
6
+
7
+ :feature:`1147`.
8
+
9
+ * Add border, fill, gradient and pattern formatting options for
10
+ chart titles and also chart axis titles.
11
+
12
+ :feature:`957`.
13
+
14
+ * Add additional type annotations. This is an ongoing refactoring.
15
+
16
+ :feature:`1123`.
17
+
18
+
1
19
  Release 3.2.5 - June 17 2025
2
20
  ----------------------------
3
21
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: xlsxwriter
3
- Version: 3.2.5
3
+ Version: 3.2.6
4
4
  Summary: A Python module for creating Excel XLSX files.
5
5
  Home-page: https://github.com/jmcnamara/XlsxWriter
6
6
  Author: John McNamara
@@ -9,7 +9,7 @@ if sys.version_info < (3, 8):
9
9
 
10
10
  setup(
11
11
  name="xlsxwriter",
12
- version="3.2.5",
12
+ version="3.2.6",
13
13
  author="John McNamara",
14
14
  author_email="jmcnamara@cpan.org",
15
15
  url="https://github.com/jmcnamara/XlsxWriter",
@@ -3,6 +3,6 @@
3
3
  #
4
4
  # Copyright (c) 2013-2025, John McNamara, jmcnamara@cpan.org
5
5
  #
6
- __version__ = "3.2.5"
6
+ __version__ = "3.2.6"
7
7
  __VERSION__ = __version__
8
8
  from .workbook import Workbook # noqa
@@ -25,7 +25,7 @@ class App(xmlwriter.XMLwriter):
25
25
  #
26
26
  ###########################################################################
27
27
 
28
- def __init__(self):
28
+ def __init__(self) -> None:
29
29
  """
30
30
  Constructor.
31
31
 
@@ -38,11 +38,11 @@ class App(xmlwriter.XMLwriter):
38
38
  self.properties = {}
39
39
  self.doc_security = 0
40
40
 
41
- def _add_part_name(self, part_name: str):
41
+ def _add_part_name(self, part_name: str) -> None:
42
42
  # Add the name of a workbook Part such as 'Sheet1' or 'Print_Titles'.
43
43
  self.part_names.append(part_name)
44
44
 
45
- def _add_heading_pair(self, heading_pair: Tuple[str, int]):
45
+ def _add_heading_pair(self, heading_pair: Tuple[str, int]) -> None:
46
46
  # Add the name of a workbook Heading Pair such as 'Worksheets',
47
47
  # 'Charts' or 'Named Ranges'.
48
48
 
@@ -53,7 +53,7 @@ class App(xmlwriter.XMLwriter):
53
53
  self.heading_pairs.append(("lpstr", heading_pair[0]))
54
54
  self.heading_pairs.append(("i4", heading_pair[1]))
55
55
 
56
- def _set_properties(self, properties: Dict[str, str]):
56
+ def _set_properties(self, properties: Dict[str, str]) -> None:
57
57
  # Set the document properties.
58
58
  self.properties = properties
59
59
 
@@ -63,7 +63,7 @@ class App(xmlwriter.XMLwriter):
63
63
  #
64
64
  ###########################################################################
65
65
 
66
- def _assemble_xml_file(self):
66
+ def _assemble_xml_file(self) -> None:
67
67
  # Assemble and write the XML file.
68
68
 
69
69
  # Write the XML declaration.
@@ -94,7 +94,7 @@ class App(xmlwriter.XMLwriter):
94
94
  #
95
95
  ###########################################################################
96
96
 
97
- def _write_properties(self):
97
+ def _write_properties(self) -> None:
98
98
  # Write the <Properties> element.
99
99
  schema = "http://schemas.openxmlformats.org/officeDocument/2006/"
100
100
  xmlns = schema + "extended-properties"
@@ -107,25 +107,25 @@ class App(xmlwriter.XMLwriter):
107
107
 
108
108
  self._xml_start_tag("Properties", attributes)
109
109
 
110
- def _write_application(self):
110
+ def _write_application(self) -> None:
111
111
  # Write the <Application> element.
112
112
  self._xml_data_element("Application", "Microsoft Excel")
113
113
 
114
- def _write_doc_security(self):
114
+ def _write_doc_security(self) -> None:
115
115
  # Write the <DocSecurity> element.
116
116
  self._xml_data_element("DocSecurity", self.doc_security)
117
117
 
118
- def _write_scale_crop(self):
118
+ def _write_scale_crop(self) -> None:
119
119
  # Write the <ScaleCrop> element.
120
120
  self._xml_data_element("ScaleCrop", "false")
121
121
 
122
- def _write_heading_pairs(self):
122
+ def _write_heading_pairs(self) -> None:
123
123
  # Write the <HeadingPairs> element.
124
124
  self._xml_start_tag("HeadingPairs")
125
125
  self._write_vt_vector("variant", self.heading_pairs)
126
126
  self._xml_end_tag("HeadingPairs")
127
127
 
128
- def _write_titles_of_parts(self):
128
+ def _write_titles_of_parts(self) -> None:
129
129
  # Write the <TitlesOfParts> element.
130
130
  parts_data = []
131
131
 
@@ -138,7 +138,9 @@ class App(xmlwriter.XMLwriter):
138
138
 
139
139
  self._xml_end_tag("TitlesOfParts")
140
140
 
141
- def _write_vt_vector(self, base_type: str, vector_data: List[Tuple[str, int]]):
141
+ def _write_vt_vector(
142
+ self, base_type: str, vector_data: List[Tuple[str, int]]
143
+ ) -> None:
142
144
  # Write the <vt:vector> element.
143
145
  attributes = [
144
146
  ("size", len(vector_data)),
@@ -158,31 +160,31 @@ class App(xmlwriter.XMLwriter):
158
160
 
159
161
  self._xml_end_tag("vt:vector")
160
162
 
161
- def _write_vt_data(self, vt_data: Tuple[str, int]):
163
+ def _write_vt_data(self, vt_data: Tuple[str, int]) -> None:
162
164
  # Write the <vt:*> elements such as <vt:lpstr> and <vt:if>.
163
165
  self._xml_data_element(f"vt:{vt_data[0]}", vt_data[1])
164
166
 
165
- def _write_company(self):
167
+ def _write_company(self) -> None:
166
168
  company = self.properties.get("company", "")
167
169
 
168
170
  self._xml_data_element("Company", company)
169
171
 
170
- def _write_manager(self):
172
+ def _write_manager(self) -> None:
171
173
  # Write the <Manager> element.
172
174
  if "manager" not in self.properties:
173
175
  return
174
176
 
175
177
  self._xml_data_element("Manager", self.properties["manager"])
176
178
 
177
- def _write_links_up_to_date(self):
179
+ def _write_links_up_to_date(self) -> None:
178
180
  # Write the <LinksUpToDate> element.
179
181
  self._xml_data_element("LinksUpToDate", "false")
180
182
 
181
- def _write_shared_doc(self):
183
+ def _write_shared_doc(self) -> None:
182
184
  # Write the <SharedDoc> element.
183
185
  self._xml_data_element("SharedDoc", "false")
184
186
 
185
- def _write_hyperlink_base(self):
187
+ def _write_hyperlink_base(self) -> None:
186
188
  # Write the <HyperlinkBase> element.
187
189
  hyperlink_base = self.properties.get("hyperlink_base")
188
190
 
@@ -191,10 +193,10 @@ class App(xmlwriter.XMLwriter):
191
193
 
192
194
  self._xml_data_element("HyperlinkBase", hyperlink_base)
193
195
 
194
- def _write_hyperlinks_changed(self):
196
+ def _write_hyperlinks_changed(self) -> None:
195
197
  # Write the <HyperlinksChanged> element.
196
198
  self._xml_data_element("HyperlinksChanged", "false")
197
199
 
198
- def _write_app_version(self):
200
+ def _write_app_version(self) -> None:
199
201
  # Write the <AppVersion> element.
200
202
  self._xml_data_element("AppVersion", "12.0000")