From aeeaf8644a8ddd41adfa6e7823722b737cd63a45 Mon Sep 17 00:00:00 2001 From: Dhruvan Date: Mon, 18 Mar 2024 21:21:22 -0400 Subject: [PATCH] Refactor C_Interop class in c_interop.py --- c_interop.py | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/c_interop.py b/c_interop.py index 03f4923..4de99af 100644 --- a/c_interop.py +++ b/c_interop.py @@ -4,4 +4,29 @@ ) class C_Interop(framework.Interop): - \ No newline at end of file + cache_dir: str + input_file: str + output_file: str + #hash: Hashing + + + def __init__(self, input_file: str, *attrs: str) -> None: + pass + + def __getattr__(self, attr: str) -> Any: + pass + + def __setattr__(self, attr: str, value: Any) -> None: + raise AttributeError("Cannot set attribute") + + def __delattr__(self, attr: str) -> None: + pass + + def __compile__(self) -> None: + pass + + def get(self) -> tuple[ctypes.CDLL._FuncPtr, ...]: + pass + + def __del__(self) -> None: + pass \ No newline at end of file