From 129f104a6f21200199ffc0571bf816e449278545 Mon Sep 17 00:00:00 2001
From: "Xuefeng Ding (IHEP)" <dingxf@ihep.ac.cn>
Date: Sun, 17 Nov 2024 07:24:02 +0800
Subject: [PATCH] simpler pyi

---
 python/myproj/simulation/_csrc/_hello.pyi | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/python/myproj/simulation/_csrc/_hello.pyi b/python/myproj/simulation/_csrc/_hello.pyi
index f8abbcb..dd4f9c6 100644
--- a/python/myproj/simulation/_csrc/_hello.pyi
+++ b/python/myproj/simulation/_csrc/_hello.pyi
@@ -1,17 +1,4 @@
-"""
-pybind11 example plugin
-"""
-
-from __future__ import annotations
-
 __all__ = ["add", "complexf"]
 
-def add(arg0: float, arg1: float) -> float:
-    """
-    A function which adds two numbers
-    """
-
-def complexf(arg0: float, arg1: float) -> float:
-    """
-    complex(a,b) = add(a,b) + 2
-    """
+def add(__a: float, __b: float) -> float: ...
+def complexf(__a: float, __b: float) -> float: ...
-- 
GitLab