ninja: no work to do. ----- mycpp/examples/invalid_condition.py ----- mycpp: LOADING mycpp/examples/invalid_condition.py mycpp pass: IR mycpp pass: CONST mycpp pass: FORWARD DECL mycpp/examples/invalid_condition.py:13 Use explicit len(obj) or 'obj is not None' for mystr, mylist, mydict mycpp/examples/invalid_condition.py:16 Use explicit len(obj) or 'obj is not None' for mystr, mylist, mydict mycpp/examples/invalid_condition.py:19 Use explicit len(obj) or 'obj is not None' for mystr, mylist, mydict mycpp/examples/invalid_condition.py:22 Use explicit len(obj) or 'obj is not None' for mystr, mylist, mydict mycpp/examples/invalid_condition.py:23 Use explicit len(obj) or 'obj is not None' for mystr, mylist, mydict mycpp/examples/invalid_condition.py:24 Use explicit len(obj) or 'obj is not None' for mystr, mylist, mydict mycpp/examples/invalid_condition.py:26 Use explicit len(obj) or 'obj is not None' for mystr, mylist, mydict mycpp/examples/invalid_condition.py:30 Use explicit len(obj) or 'obj is not None' for mystr, mylist, mydict mycpp/mycpp_main.py: 8 translation errors (after type checking) ----- mycpp/examples/invalid_default_args.py ----- mycpp: LOADING mycpp/examples/invalid_default_args.py mycpp pass: IR mycpp pass: CONST mycpp pass: FORWARD DECL mycpp pass: PROTOTYPES mycpp/examples/invalid_default_args.py:20 [TODO] has 2 default arguments. Only 1 is allowed mycpp/examples/invalid_default_args.py:26 Invalid default arg of type builtins.list[builtins.int] (not None, bool, int, float, ASDL enum) mycpp/examples/invalid_default_args.py:33 [TODO] has 2 default arguments. Only 1 is allowed mycpp/examples/invalid_default_args.py:41 Invalid default arg of type builtins.list[builtins.int] (not None, bool, int, float, ASDL enum) mycpp/mycpp_main.py: 4 translation errors (after type checking) ----- mycpp/examples/invalid_except.py ----- mycpp: LOADING mycpp/examples/invalid_except.py mycpp pass: IR mycpp pass: CONST mycpp pass: FORWARD DECL mycpp pass: PROTOTYPES mycpp/examples/invalid_except.py:15 Use except (IOError, OSError) rather than catching just one mycpp/examples/invalid_except.py:20 Use except (IOError, OSError) rather than catching just one mycpp/examples/invalid_except.py:35 try/finally not supported mycpp/mycpp_main.py: 3 translation errors (after type checking) ----- mycpp/examples/invalid_format_args.py ----- mycpp: LOADING mycpp/examples/invalid_format_args.py -------------------------------------------------------------------------------- mycpp/examples/invalid_format_args.py:12: error: Not all arguments converted during string formatting mycpp/examples/invalid_format_args.py:15: error: Not enough arguments for format string -------------------------------------------------------------------------------- mv: cannot stat '_tmp/mycpp-invalid.tmp': No such file or directory ----- mycpp/examples/invalid_format_strings.py ----- mycpp: LOADING mycpp/examples/invalid_format_strings.py -------------------------------------------------------------------------------- mycpp/examples/invalid_format_strings.py:13: error: Unsupported format character 'z' -------------------------------------------------------------------------------- mv: cannot stat '_tmp/mycpp-invalid.tmp': No such file or directory ----- mycpp/examples/invalid_global.py ----- mycpp: LOADING mycpp/examples/invalid_global.py mycpp pass: IR mycpp pass: CONST mycpp pass: FORWARD DECL mycpp pass: PROTOTYPES mycpp/examples/invalid_global.py:17 Can't initialize objects at the top level, only BigStr List Dict mycpp/examples/invalid_global.py:18 Can't initialize objects at the top level, only BigStr List Dict mycpp/mycpp_main.py: 2 translation errors (after type checking) ----- mycpp/examples/invalid_print.py ----- mycpp: LOADING mycpp/examples/invalid_print.py mycpp pass: IR mycpp pass: CONST mycpp pass: FORWARD DECL mycpp pass: PROTOTYPES mycpp/examples/invalid_print.py:13 File should start with "from __future__ import print_function" mycpp/mycpp_main.py: 1 translation errors (after type checking) ----- mycpp/examples/invalid_python.py ----- mycpp: LOADING mycpp/examples/invalid_python.py mycpp pass: IR mycpp pass: CONST mycpp pass: FORWARD DECL mycpp pass: PROTOTYPES mycpp/examples/invalid_python.py:27 global not allowed mycpp/examples/invalid_python.py:30 exec not allowed mycpp/examples/invalid_python.py:50 unicode expr not translated mycpp/examples/invalid_python.py:55 complex expr not translated mycpp/examples/invalid_python.py:57 set expr not translated mycpp/mycpp_main.py: 5 translation errors (after type checking) ----- mycpp/examples/invalid_switch.py ----- mycpp: LOADING mycpp/examples/invalid_switch.py mycpp pass: IR mycpp pass: CONST mycpp pass: FORWARD DECL mycpp pass: PROTOTYPES mycpp/examples/invalid_switch.py:14 str_switch got no else: for default block mycpp/examples/invalid_switch.py:24 Expected call like case(x), got IntExpr(42) mycpp/examples/invalid_switch.py:40 Expected call like case(x), got IntExpr(42) mycpp/examples/invalid_switch.py:57 str_switch can only have case("x"), not case("x", "y") mycpp/examples/invalid_switch.py:74 str_switch can only be used with constant strings, got IntExpr(42) mycpp/mycpp_main.py: 5 translation errors (after type checking) ----- mycpp/examples/invalid_try_else.py ----- mycpp: LOADING mycpp/examples/invalid_try_else.py mycpp pass: IR mycpp pass: CONST mycpp pass: FORWARD DECL mycpp pass: PROTOTYPES mycpp/examples/invalid_try_else.py:13 try/else not supported mycpp/examples/invalid_try_else.py:20 try/else not supported mycpp/examples/invalid_try_else.py:33 try/else not supported mycpp/mycpp_main.py: 3 translation errors (after type checking) ----- mycpp/examples/invalid_types.py ----- mycpp: LOADING mycpp/examples/invalid_types.py Traceback (most recent call last): File "/home/uke/oil/mycpp/mycpp_main.py", line 398, in sys.exit(main(sys.argv)) File "/home/uke/oil/mycpp/mycpp_main.py", line 179, in main result = mypy_build(sources=sources, options=options) File "/home/uke/wedge/oils-for-unix.org/pkg/mypy/0.780/mypy/build.py", line 180, in build result = _build( File "/home/uke/wedge/oils-for-unix.org/pkg/mypy/0.780/mypy/build.py", line 252, in _build graph = dispatch(sources, manager, stdout) File "/home/uke/wedge/oils-for-unix.org/pkg/mypy/0.780/mypy/build.py", line 2573, in dispatch graph = load_graph(sources, manager) File "/home/uke/wedge/oils-for-unix.org/pkg/mypy/0.780/mypy/build.py", line 2731, in load_graph st = State(id=bs.module, path=bs.path, source=bs.text, manager=manager, File "/home/uke/wedge/oils-for-unix.org/pkg/mypy/0.780/mypy/build.py", line 1852, in __init__ self.parse_file() File "/home/uke/wedge/oils-for-unix.org/pkg/mypy/0.780/mypy/build.py", line 2003, in parse_file self.tree = manager.parse_file(self.id, self.xpath, source, File "/home/uke/wedge/oils-for-unix.org/pkg/mypy/0.780/mypy/build.py", line 780, in parse_file self.errors.raise_error() File "/home/uke/wedge/oils-for-unix.org/pkg/mypy/0.780/mypy/errors.py", line 414, in raise_error raise CompileError(self.new_messages(), mypy.errors.CompileError: mycpp/examples/invalid_types.py:17: error: syntax error in type comment 'List[SYNTAX ERROR' mv: cannot stat '_tmp/mycpp-invalid.tmp': No such file or directory ----- mycpp/examples/invalid_types_2.py ----- mycpp: LOADING mycpp/examples/invalid_types_2.py -------------------------------------------------------------------------------- mycpp/examples/invalid_types_2.py:17: error: Incompatible types in assignment (expression has type "int", variable has type "List[int]") -------------------------------------------------------------------------------- mv: cannot stat '_tmp/mycpp-invalid.tmp': No such file or directory