Skip to content

Commit 0a37155

Browse files
committed
fix "code" hint
1 parent bc7a052 commit 0a37155

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shared-bindings/codeop/__init__.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ static const char *get_arg_str(mp_obj_t arg, qstr name) {
1616

1717
//| """Utilities to compile possibly incomplete Python source code."""
1818
//|
19+
//| from typing import Any
20+
//|
1921

2022
//| def compile_command(
2123
//| source: str, filename: str = "<input>", symbol: str = "single"
22-
//| ) -> "code": # NOTE(elpekenin): this type does not seem to exist
24+
//| ) -> Any: # NOTE(elpekenin): we can't access the "code" type
2325
//| """Compile a command and determine whether it is incomplete
2426
//|
2527
//| The 'completeness' determination is slightly different than in standard Python

0 commit comments

Comments
 (0)