Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Python stub files for static analysis

0 REPLIES 0
Reply
Message 1 of 1
siliconlad
60 Views, 0 Replies

Python stub files for static analysis

What is the best way to statically analyse code using the `adsk` Python module?

 

I'm currently using Pyright and I have to disable `reportMissingImports` otherwise I get flooded with errors:

 

 error: Import "adsk.fusion" could not be resolved (reportMissingImports)

 

 

Is there potentially a stub file that can be used (e.g. in GitHub actions) to provide more thorough checks? There exists already python files for intellisense, but are there are restrictions against publishing these stub files publicly? Or could Autodesk publish them so it can be used in CI/CD?

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report