Skip to content

Commit fc90653

Browse files
nat-ncetanu
authored andcommitted
Sort the list of sources in generated file headers
1 parent 2a73dba commit fc90653

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/betterproto/lib/google/protobuf/__init__.py

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/betterproto/plugin/models.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
import re
5959
import textwrap
6060
from dataclasses import dataclass, field
61-
from typing import Dict, Iterator, List, Optional, Set, Text, Type, Union
61+
from typing import Dict, Iterable, Iterator, List, Optional, Set, Text, Type, Union
6262
import sys
6363

6464
from ..casing import sanitize_name
@@ -251,15 +251,15 @@ def package(self) -> str:
251251
return self.package_proto_obj.package
252252

253253
@property
254-
def input_filenames(self) -> List[str]:
254+
def input_filenames(self) -> Iterable[str]:
255255
"""Names of the input files used to build this output.
256256
257257
Returns
258258
-------
259-
List[str]
259+
Iterable[str]
260260
Names of the input files used to build this output.
261261
"""
262-
return [f.name for f in self.input_files]
262+
return sorted(f.name for f in self.input_files)
263263

264264
@property
265265
def python_module_imports(self) -> Set[str]:

0 commit comments

Comments
 (0)