rocklabs-io / ic-py

Python Agent Library for the DFINITY Internet Computer
MIT License
128 stars 27 forks source link

provide interface according to candid provided #70

Closed letmejustputthishere closed 2 years ago

letmejustputthishere commented 2 years ago

would be nice if i had access to the method available on a canister and their signatures when i define an actor like this:

  ogy = Canister(agent=agent, canister_id=canister_id,
                    candid=ogy_candid)
letmejustputthishere commented 2 years ago
Screenshot 2022-07-14 at 11 31 03

bc this is annoying ^^

Myse1f commented 2 years ago

Python is dynamic language, which means it can add property and methods in the runtime. But I think the Pylance analyze the code based on static analysis. Thus it can't detect the method added in runtime.