Skip to content

Commit 1c5eb43

Browse files
committed
Clarified dump_enum docstring in generate_sre_constants.py
1 parent 53a290a commit 1c5eb43

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/generate_sre_constants.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def dump_enum(d, enum_name, derives, strip_prefix=""):
3535
"""Generate Rust enum definitions from a Python dictionary.
3636
3737
Args:
38-
d (dict): The dictionary containing the enum variants.
38+
d (list): The list containing the enum variants.
3939
enum_name (str): The name of the enum to generate.
4040
derives (str): The derive attributes to include.
4141
strip_prefix (str, optional): A prefix to strip from the variant names. Defaults to "".
@@ -44,6 +44,7 @@ def dump_enum(d, enum_name, derives, strip_prefix=""):
4444
list: A list of strings representing the enum definition.
4545
"""
4646
items = sorted(d)
47+
print(f"items is {items}")
4748
content = [f"{derives}\n"]
4849
content.append("#[repr(u32)]\n")
4950
content.append("#[allow(non_camel_case_types, clippy::upper_case_acronyms)]\n")

0 commit comments

Comments
 (0)