Update codegen.rs

This commit is contained in:
Shunsuke Shibayama 2023-12-28 21:01:53 +09:00
parent 93f1dc0ed3
commit a128719cbd

View file

@ -781,6 +781,12 @@ impl PyCodeGenerator {
| "invert" | "is_" | "is_not" | "call" => {
self.load_operators();
}
"CodeType" => {
self.emit_global_import_items(
Identifier::public("types"),
vec![(Identifier::public("CodeType"), None)],
);
}
// NoneType is not defined in the global scope, use `type(None)` instead
"NoneType" => {
self.emit_push_null();