cleanup the od api interface

This commit is contained in:
robbe 2025-06-27 12:15:19 +02:00
parent 04a17f6ac8
commit 9eea3618d0
6 changed files with 69 additions and 47 deletions

9
api/od_stub.pyi Normal file
View file

@ -0,0 +1,9 @@
from typing import Optional
from uuid import UUID
from od_stub_readonly import *
def create_object(object_name: Optional[str], class_name: str) -> UUID: ...
def create_link(link_name: Optional[str], assoc_name: str, src: UUID, tgt: UUID) -> UUID: ...
def delete(obj: UUID) -> None: ...
def set_slot_value(obj: UUID, attr_name: str, new_value: any, is_code=False) -> None: ...