Skip to content

Commit 04f3385

Browse files
authored
Merge pull request #13 from timrid/fix-constants-ordering
Sort fields
2 parents 1699369 + 4299c83 commit 04f3385

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/chaquopy_stubgen/_stubgen/class_stub.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,8 @@ def convert_java_class_to_python_stub(
551551
ann = f"typing.ClassVar[{ann}]"
552552
fields_output.append(f"{safe_field_name}: {ann} = ...")
553553

554+
fields_output.sort()
555+
554556
# ---- Constructors ----
555557
constructors_output: list[str] = []
556558
ctors = [

0 commit comments

Comments
 (0)