This repository was archived by the owner on Jun 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/betterproto2_compiler/plugin Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 26
26
27
27
import builtins
28
28
import re
29
- from collections .abc import Iterable , Iterator
29
+ from collections .abc import Iterator
30
30
from dataclasses import (
31
31
dataclass ,
32
32
field ,
@@ -219,7 +219,7 @@ class OutputTemplate:
219
219
220
220
parent_request : PluginRequestCompiler
221
221
package_proto_obj : FileDescriptorProto
222
- input_files : list [str ] = field (default_factory = list )
222
+ input_files : list [FileDescriptorProto ] = field (default_factory = list )
223
223
imports_end : set [str ] = field (default_factory = set )
224
224
messages : dict [str , "MessageCompiler" ] = field (default_factory = dict )
225
225
enums : dict [str , "EnumDefinitionCompiler" ] = field (default_factory = dict )
@@ -240,15 +240,15 @@ def package(self) -> str:
240
240
return self .package_proto_obj .package
241
241
242
242
@property
243
- def input_filenames (self ) -> Iterable [str ]:
243
+ def input_filenames (self ) -> list [str ]:
244
244
"""Names of the input files used to build this output.
245
245
246
246
Returns
247
247
-------
248
- Iterable [str]
248
+ list [str]
249
249
Names of the input files used to build this output.
250
250
"""
251
- return sorted (f .name for f in self .input_files )
251
+ return sorted ([ f .name for f in self .input_files ] )
252
252
253
253
254
254
@dataclass
You can’t perform that action at this time.
0 commit comments