<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Python stub files for static analysis in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-stub-files-for-static-analysis/m-p/12616183#M1922</link>
    <description>&lt;P&gt;What is the best way to statically analyse code using the `adsk` Python module?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently using &lt;A href="https://microsoft.github.io/pyright/#/" target="_blank" rel="noopener"&gt;Pyright&lt;/A&gt;&amp;nbsp;and I have to disable `reportMissingImports` otherwise I get flooded with errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt; error: Import "adsk.fusion" could not be resolved (reportMissingImports)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2024 13:37:23 GMT</pubDate>
    <dc:creator>siliconlad</dc:creator>
    <dc:date>2024-03-05T13:37:23Z</dc:date>
    <item>
      <title>Python stub files for static analysis</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-stub-files-for-static-analysis/m-p/12616183#M1922</link>
      <description>&lt;P&gt;What is the best way to statically analyse code using the `adsk` Python module?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently using &lt;A href="https://microsoft.github.io/pyright/#/" target="_blank" rel="noopener"&gt;Pyright&lt;/A&gt;&amp;nbsp;and I have to disable `reportMissingImports` otherwise I get flooded with errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt; error: Import "adsk.fusion" could not be resolved (reportMissingImports)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 13:37:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-stub-files-for-static-analysis/m-p/12616183#M1922</guid>
      <dc:creator>siliconlad</dc:creator>
      <dc:date>2024-03-05T13:37:23Z</dc:date>
    </item>
  </channel>
</rss>

