Skip to content

Instantly share code, notes, and snippets.

View rec's full-sized avatar
🥝
coding

Tom Ritchford rec

🥝
coding
View GitHub Profile
from engora.misc import dcommand
from typer import Argument, Option, Typer
from typing import Optional
import pytest
command = Typer().command
@command(help='test')
def a_command(
@rec
rec / funcs.py
Last active April 18, 2025 16:58
funcs = []
for i in range(10):
def func(i=i):
return i
funcs.append(func)
print(*(f() for f in funcs))
{
"081000-7a470c93206": {
"diff": {
"otherSymbolCounts": {"withKnownType": 1}
},
"symbols": {"added": 1}
},
"081045-284b7668980": {
"diff": {
"exportedSymbolCounts": {"withUnknownType": 2},
{
"081000-7a470c93206": {
"diff": {
"otherSymbolCounts": {"withKnownType": 1}
},
"symbols": {"added": 1}
},
"081045-284b7668980": {
"diff": {
"exportedSymbolCounts": {"withUnknownType": 2},
{
"before": {
"name": "11e97bc7bd4~4801",
"commit_id": "6c2c527cd67",
"message": "[BE] Remove extra semicolons from SymmetricMemory.hpp (#154034)"
},
"after": {
"name": "11e97bc7bd4~4800",
"commit_id": "b7d08defe9c",
"message": "[BE]: Type previously untyped decorators (#153726)"