Skip to content

Commit

Permalink
add type annotation to the return value
Browse files Browse the repository at this point in the history
  • Loading branch information
junrushao committed Aug 19, 2022
1 parent 959a00b commit 2575d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tir/schedule/trace.cc
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ TVM_STATIC_IR_FUNCTOR(ReprPrinter, vtable)
const auto* self = obj.as<TraceNode>();
ICHECK_NOTNULL(self);
p->stream << "# from tvm import tir" << std::endl;
p->stream << "def apply_trace(sch: tir.Schedule):" << std::endl;
p->stream << "def apply_trace(sch: tir.Schedule) -> None:" << std::endl;
Array<String> repr = self->AsPython(/*remove_postproc=*/false);
bool is_first = true;
for (const String& line : repr) {
Expand Down

0 comments on commit 2575d7c

Please sign in to comment.