Skip to content

Commit

Permalink
Add type annotations for Tuple and Set variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kmr-srbh committed May 9, 2024
1 parent 4c31c45 commit 913e293
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libasr/codegen/asr_to_python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ class ASRToLpythonVisitor : public ASR::BaseVisitor<ASRToLpythonVisitor>
} case ASR::ttypeType::List : {
r = ASRUtils::type_to_str_python(t);
break;
} case ASR::ttypeType::Tuple : {
r = ASRUtils::type_to_str_python(t);
break;
}case ASR::ttypeType::Set : {
r = ASRUtils::type_to_str_python(t);
break;
} default : {
throw LCompilersException("The type `"
+ ASRUtils::type_to_str_python(t) + "` is not handled yet");
Expand Down

0 comments on commit 913e293

Please sign in to comment.