Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit d6faaa5

Browse files
committed
Fix typing error
1 parent 1769216 commit d6faaa5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/betterproto2_compiler/plugin/models.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
import builtins
2828
import re
29-
from collections.abc import Iterable, Iterator
29+
from collections.abc import Iterator
3030
from dataclasses import (
3131
dataclass,
3232
field,
@@ -219,7 +219,7 @@ class OutputTemplate:
219219

220220
parent_request: PluginRequestCompiler
221221
package_proto_obj: FileDescriptorProto
222-
input_files: list[str] = field(default_factory=list)
222+
input_files: list[FileDescriptorProto] = field(default_factory=list)
223223
imports_end: set[str] = field(default_factory=set)
224224
messages: dict[str, "MessageCompiler"] = field(default_factory=dict)
225225
enums: dict[str, "EnumDefinitionCompiler"] = field(default_factory=dict)
@@ -240,15 +240,15 @@ def package(self) -> str:
240240
return self.package_proto_obj.package
241241

242242
@property
243-
def input_filenames(self) -> Iterable[str]:
243+
def input_filenames(self) -> list[str]:
244244
"""Names of the input files used to build this output.
245245
246246
Returns
247247
-------
248-
Iterable[str]
248+
list[str]
249249
Names of the input files used to build this output.
250250
"""
251-
return sorted(f.name for f in self.input_files)
251+
return sorted([f.name for f in self.input_files])
252252

253253

254254
@dataclass

0 commit comments

Comments
 (0)