Skip to content

Commit 9b950a4

Browse files
committed
use types.CodeType, as per jepler finding
1 parent 0a37155 commit 9b950a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared-bindings/codeop/__init__.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +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
19+
//| from types import CodeType
2020
//|
2121

2222
//| def compile_command(
2323
//| source: str, filename: str = "<input>", symbol: str = "single"
24-
//| ) -> Any: # NOTE(elpekenin): we can't access the "code" type
24+
//| ) -> CodeType:
2525
//| """Compile a command and determine whether it is incomplete
2626
//|
2727
//| The 'completeness' determination is slightly different than in standard Python

0 commit comments

Comments
 (0)