thautwarm / Traffy.UnityPython

An efficient Python implementation in C#, running on every platform via Unity IL2CPP.
MIT License
44 stars 0 forks source link

add `function` abc type to work with IDEs #28

Closed thautwarm closed 2 years ago

thautwarm commented 2 years ago
class function(ABC, Callable):

    @abstractmethod
    @property
    def __name__(self) -> str: pass

    @abstractmethod
    def __call__(self, *args, **kwargs) -> object: ...

User functions and builtin functions are all functions.

thautwarm commented 2 years ago

reject this. function is for user function only.