File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040 " await micropip.install(\" rich\" )"
4141 ]
4242 },
43- {
44- "cell_type" : " code" ,
45- "execution_count" : null ,
46- "metadata" : {},
47- "outputs" : [],
48- "source" : [
49- " from typing import Tuple\n " ,
50- " import sys"
51- ]
52- },
5343 {
5444 "cell_type" : " code" ,
5545 "execution_count" : null ,
6656 "metadata" : {},
6757 "outputs" : [],
6858 "source" : [
69- " def my_broken_function() -> Tuple [int, int]:\n " ,
59+ " def my_broken_function() -> tuple [int, int]:\n " ,
7060 " x = 6\n " ,
7161 " y = 4\n " ,
7262 " x += 2\n " ,
206196 "outputs" : [],
207197 "source" : [
208198 " def my_broken_function():\n " ,
209- " # breakpoint()\n " ,
210199 " x = 6\n " ,
211200 " y = 4\n " ,
201+ " # breakpoint()\n " ,
212202 " x += 2\n " ,
213203 " y *= 2\n " ,
214204 " x -= y\n " ,
Original file line number Diff line number Diff line change 3131 "source" : [
3232 " def bad_decorator(func):\n " ,
3333 " print(f\" You don't need {func.__name__}!\" )\n " ,
34- " return 2 \n " ,
34+ " return 42 \n " ,
3535 " \n " ,
3636 " \n " ,
3737 " @bad_decorator\n " ,
142142 " import time\n " ,
143143 " \n " ,
144144 " \n " ,
145- " @functools.lru_cache \n " ,
145+ " @functools.cache \n " ,
146146 " def slow(x: int) -> int:\n " ,
147147 " time.sleep(2)\n " ,
148148 " return x"
You can’t perform that action at this time.
0 commit comments