1414def is_free_threaded () -> bool :
1515 """
1616 Check if running on free-threaded Python build (Python 3.13t).
17-
17+
1818 Returns:
1919 bool: True if running on free-threaded build, False otherwise.
2020 """
@@ -24,10 +24,10 @@ def is_free_threaded() -> bool:
2424def get_optimal_workers (workers : int | None = None ) -> int :
2525 """
2626 Get the optimal number of worker threads.
27-
27+
2828 Args:
2929 workers: Explicitly specified worker count. If None, auto-detect.
30-
30+
3131 Returns:
3232 int: Number of worker threads to use.
3333 """
@@ -49,10 +49,10 @@ def get_optimal_workers(workers: int | None = None) -> int:
4949def key_is_valid_xml_cached (key : str ) -> bool :
5050 """
5151 Thread-safe cached version of key_is_valid_xml.
52-
52+
5353 Args:
5454 key: The XML key to validate.
55-
55+
5656 Returns:
5757 bool: True if the key is valid XML, False otherwise.
5858 """
@@ -71,11 +71,11 @@ def key_is_valid_xml_cached(key: str) -> bool:
7171def make_valid_xml_name_cached (key : str , attr : dict [str , Any ]) -> tuple [str , dict [str , Any ]]:
7272 """
7373 Thread-safe cached version of make_valid_xml_name.
74-
74+
7575 Args:
7676 key: The key to validate.
7777 attr: The attributes dictionary.
78-
78+
7979 Returns:
8080 tuple: Valid XML key and updated attributes.
8181 """
@@ -111,7 +111,7 @@ def _convert_dict_item(
111111) -> str :
112112 """
113113 Convert a single dictionary item to XML (for parallel processing).
114-
114+
115115 Args:
116116 key: Dictionary key.
117117 val: Dictionary value.
@@ -122,7 +122,7 @@ def _convert_dict_item(
122122 cdata: Whether to wrap strings in CDATA.
123123 item_wrap: Whether to wrap list items.
124124 list_headers: Whether to repeat headers for lists.
125-
125+
126126 Returns:
127127 str: XML string for this item.
128128 """
@@ -189,7 +189,7 @@ def convert_dict_parallel(
189189) -> str :
190190 """
191191 Parallel version of convert_dict that processes dictionary items concurrently.
192-
192+
193193 Args:
194194 obj: Dictionary to convert.
195195 ids: List of unique IDs.
@@ -201,7 +201,7 @@ def convert_dict_parallel(
201201 list_headers: Whether to repeat headers for lists.
202202 workers: Number of worker threads (None for auto-detect).
203203 min_items_for_parallel: Minimum items to enable parallelization.
204-
204+
205205 Returns:
206206 str: XML string.
207207 """
@@ -243,7 +243,7 @@ def _convert_list_chunk(
243243) -> str :
244244 """
245245 Convert a chunk of list items to XML (for parallel processing).
246-
246+
247247 Args:
248248 items: List chunk to convert.
249249 ids: List of unique IDs.
@@ -254,7 +254,7 @@ def _convert_list_chunk(
254254 item_wrap: Whether to wrap list items.
255255 list_headers: Whether to repeat headers for lists.
256256 start_offset: Starting index for this chunk.
257-
257+
258258 Returns:
259259 str: XML string for this chunk.
260260 """
@@ -277,7 +277,7 @@ def convert_list_parallel(
277277) -> str :
278278 """
279279 Parallel version of convert_list that processes list chunks concurrently.
280-
280+
281281 Args:
282282 items: List to convert.
283283 ids: List of unique IDs.
@@ -289,7 +289,7 @@ def convert_list_parallel(
289289 list_headers: Whether to repeat headers for lists.
290290 workers: Number of worker threads (None for auto-detect).
291291 chunk_size: Number of items per chunk.
292-
292+
293293 Returns:
294294 str: XML string.
295295 """
0 commit comments