Skip to content

Instantly share code, notes, and snippets.

View ProgramRipper's full-sized avatar
💯
Learning

ProgramRipper ProgramRipper

💯
Learning
View GitHub Profile
@ProgramRipper
ProgramRipper / dev.py
Created July 18, 2022 16:02 — forked from Wybxc/dev.py
Schema Type: 尝试用附加 pyi 的方式为动态方法签名
from schema_gen import schema_gen
def add(x: int, y: int):
"""calculate x + y"""
return x + y
async def sub(x: int, y: int) -> int:
"""calculate x - y"""
return x - y