|
1170 | 1170 | "name": "stdout", |
1171 | 1171 | "output_type": "stream", |
1172 | 1172 | "text": [ |
1173 | | - "The sum of two numbers.\n", |
1174 | | - "\n", |
1175 | | - " Used to demonstrate numpy-style docstrings.\n", |
1176 | | - "\n", |
1177 | | - "Parameters\n", |
1178 | | - "----------\n", |
1179 | | - "a : int\n", |
1180 | | - " the 1st number to add\n", |
1181 | | - "b : int\n", |
1182 | | - " the 2nd number to add (default: 0)\n", |
1183 | | - "\n", |
1184 | | - "Returns\n", |
1185 | | - "-------\n", |
1186 | | - "int\n", |
| 1173 | + "The sum of two numbers.\n" |
| 1174 | + ] |
| 1175 | + }, |
| 1176 | + { |
| 1177 | + "name": "stdout", |
| 1178 | + "output_type": "stream", |
| 1179 | + "text": [ |
| 1180 | + "\n" |
| 1181 | + ] |
| 1182 | + }, |
| 1183 | + { |
| 1184 | + "name": "stdout", |
| 1185 | + "output_type": "stream", |
| 1186 | + "text": [ |
| 1187 | + " Used to demonstrate numpy-style docstrings.\n" |
| 1188 | + ] |
| 1189 | + }, |
| 1190 | + { |
| 1191 | + "name": "stdout", |
| 1192 | + "output_type": "stream", |
| 1193 | + "text": [ |
| 1194 | + "\n" |
| 1195 | + ] |
| 1196 | + }, |
| 1197 | + { |
| 1198 | + "name": "stdout", |
| 1199 | + "output_type": "stream", |
| 1200 | + "text": [ |
| 1201 | + "Parameters\n" |
| 1202 | + ] |
| 1203 | + }, |
| 1204 | + { |
| 1205 | + "name": "stdout", |
| 1206 | + "output_type": "stream", |
| 1207 | + "text": [ |
| 1208 | + "----------\n" |
| 1209 | + ] |
| 1210 | + }, |
| 1211 | + { |
| 1212 | + "name": "stdout", |
| 1213 | + "output_type": "stream", |
| 1214 | + "text": [ |
| 1215 | + "a : int\n" |
| 1216 | + ] |
| 1217 | + }, |
| 1218 | + { |
| 1219 | + "name": "stdout", |
| 1220 | + "output_type": "stream", |
| 1221 | + "text": [ |
| 1222 | + " the 1st number to add\n" |
| 1223 | + ] |
| 1224 | + }, |
| 1225 | + { |
| 1226 | + "name": "stdout", |
| 1227 | + "output_type": "stream", |
| 1228 | + "text": [ |
| 1229 | + "b : int\n" |
| 1230 | + ] |
| 1231 | + }, |
| 1232 | + { |
| 1233 | + "name": "stdout", |
| 1234 | + "output_type": "stream", |
| 1235 | + "text": [ |
| 1236 | + " the 2nd number to add (default: 0)\n" |
| 1237 | + ] |
| 1238 | + }, |
| 1239 | + { |
| 1240 | + "name": "stdout", |
| 1241 | + "output_type": "stream", |
| 1242 | + "text": [ |
| 1243 | + "\n" |
| 1244 | + ] |
| 1245 | + }, |
| 1246 | + { |
| 1247 | + "name": "stdout", |
| 1248 | + "output_type": "stream", |
| 1249 | + "text": [ |
| 1250 | + "Returns\n" |
| 1251 | + ] |
| 1252 | + }, |
| 1253 | + { |
| 1254 | + "name": "stdout", |
| 1255 | + "output_type": "stream", |
| 1256 | + "text": [ |
| 1257 | + "-------\n" |
| 1258 | + ] |
| 1259 | + }, |
| 1260 | + { |
| 1261 | + "name": "stdout", |
| 1262 | + "output_type": "stream", |
| 1263 | + "text": [ |
| 1264 | + "int\n" |
| 1265 | + ] |
| 1266 | + }, |
| 1267 | + { |
| 1268 | + "name": "stdout", |
| 1269 | + "output_type": "stream", |
| 1270 | + "text": [ |
1187 | 1271 | " the result of adding `a` to `b`\n" |
1188 | 1272 | ] |
1189 | 1273 | } |
|
1471 | 1555 | "name": "stdout", |
1472 | 1556 | "output_type": "stream", |
1473 | 1557 | "text": [ |
1474 | | - "def flexiclass(\n", |
1475 | | - " cls # The class to convert\n", |
| 1558 | + "def flexiclass(\n" |
| 1559 | + ] |
| 1560 | + }, |
| 1561 | + { |
| 1562 | + "name": "stdout", |
| 1563 | + "output_type": "stream", |
| 1564 | + "text": [ |
| 1565 | + " cls # The class to convert\n" |
| 1566 | + ] |
| 1567 | + }, |
| 1568 | + { |
| 1569 | + "name": "stdout", |
| 1570 | + "output_type": "stream", |
| 1571 | + "text": [ |
1476 | 1572 | " ) -> dataclass:\n" |
1477 | 1573 | ] |
1478 | 1574 | } |
|
1510 | 1606 | "name": "stdout", |
1511 | 1607 | "output_type": "stream", |
1512 | 1608 | "text": [ |
1513 | | - "def multi(a, b=1,\n", |
1514 | | - " c=2,\n", |
| 1609 | + "def multi(a, b=1,\n" |
| 1610 | + ] |
| 1611 | + }, |
| 1612 | + { |
| 1613 | + "name": "stdout", |
| 1614 | + "output_type": "stream", |
| 1615 | + "text": [ |
| 1616 | + " c=2,\n" |
| 1617 | + ] |
| 1618 | + }, |
| 1619 | + { |
| 1620 | + "name": "stdout", |
| 1621 | + "output_type": "stream", |
| 1622 | + "text": [ |
1515 | 1623 | " d=3):\n" |
1516 | 1624 | ] |
1517 | 1625 | } |
|
2144 | 2252 | "name": "stdout", |
2145 | 2253 | "output_type": "stream", |
2146 | 2254 | "text": [ |
2147 | | - "def foo(\n", |
2148 | | - " a:int, # first\n", |
2149 | | - " b:str, c, # third\n", |
| 2255 | + "def foo(\n" |
| 2256 | + ] |
| 2257 | + }, |
| 2258 | + { |
| 2259 | + "name": "stdout", |
| 2260 | + "output_type": "stream", |
| 2261 | + "text": [ |
| 2262 | + " a:int, # first\n" |
| 2263 | + ] |
| 2264 | + }, |
| 2265 | + { |
| 2266 | + "name": "stdout", |
| 2267 | + "output_type": "stream", |
| 2268 | + "text": [ |
| 2269 | + " b:str, c, # third\n" |
| 2270 | + ] |
| 2271 | + }, |
| 2272 | + { |
| 2273 | + "name": "stdout", |
| 2274 | + "output_type": "stream", |
| 2275 | + "text": [ |
2150 | 2276 | ")->int:\n" |
2151 | 2277 | ] |
2152 | 2278 | } |
|
2350 | 2476 | "name": "stdout", |
2351 | 2477 | "output_type": "stream", |
2352 | 2478 | "text": [ |
2353 | | - "def _d(\n", |
2354 | | - " c:int, # First\n", |
2355 | | - " b:str, # Second\n", |
2356 | | - " a:int=2, z:str='b', # Last\n", |
2357 | | - ")->int: # Return an int\n", |
| 2479 | + "def _d(\n" |
| 2480 | + ] |
| 2481 | + }, |
| 2482 | + { |
| 2483 | + "name": "stdout", |
| 2484 | + "output_type": "stream", |
| 2485 | + "text": [ |
| 2486 | + " c:int, # First\n" |
| 2487 | + ] |
| 2488 | + }, |
| 2489 | + { |
| 2490 | + "name": "stdout", |
| 2491 | + "output_type": "stream", |
| 2492 | + "text": [ |
| 2493 | + " b:str, # Second\n" |
| 2494 | + ] |
| 2495 | + }, |
| 2496 | + { |
| 2497 | + "name": "stdout", |
| 2498 | + "output_type": "stream", |
| 2499 | + "text": [ |
| 2500 | + " a:int=2, z:str='b', # Last\n" |
| 2501 | + ] |
| 2502 | + }, |
| 2503 | + { |
| 2504 | + "name": "stdout", |
| 2505 | + "output_type": "stream", |
| 2506 | + "text": [ |
| 2507 | + ")->int: # Return an int\n" |
| 2508 | + ] |
| 2509 | + }, |
| 2510 | + { |
| 2511 | + "name": "stdout", |
| 2512 | + "output_type": "stream", |
| 2513 | + "text": [ |
2358 | 2514 | "\n" |
2359 | 2515 | ] |
2360 | 2516 | } |
|
0 commit comments