Skip to content

Commit d764938

Browse files
authored
[py] Use f-string in generate.py (#16641)
1 parent 3939649 commit d764938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def py_annotation(self):
233233
py_ref = ref_to_python(self.items.ref)
234234
ann = f"typing.List[{py_ref}]"
235235
else:
236-
ann = "typing.List[{}]".format(CdpPrimitiveType.get_annotation(self.items.type))
236+
ann = f"typing.List[{CdpPrimitiveType.get_annotation(self.items.type)}]"
237237
else:
238238
if self.ref:
239239
py_ref = ref_to_python(self.ref)

0 commit comments

Comments
 (0)