GitHub user potiuk added a comment to the discussion: Airflow Incompatibility with Pylance/Pyright
Use Mypy instead. This is what we use, check and run in our CI. There is a Mypy VS Code extension as far as I know that uses MyPy Daemon. We have MyPy plugins that support those "Airflow" things - this is why it works nicer (despite all the MyPy shortcomings). And last time we checked MyPy is the only one that support plugins that allow us to implement some of the checks you mentioned. We spoke to both PyRefly (Facebook) and Ty (Astral) teams and while PyRefly team is kinda open to add plugins in the near fuiture, Ty will not have plugins for quite long time after it is out of beta. But If you have other ways, it would be great to contribute it. We are also looking towards ty, pyrefly as replacements for mypy - but lack of plugin support that would allow us to make those things work made it so far not very appealing despite the speed. However maybe things changes - if you would like to invest in Pyrefly or Ty replacement, that would be a good contribution - both of them fully suport Language Server Specification so should nicely fit VSCode. I believe - unfortunately - pyright does not support plugins, otherwise we would also welcome someone who really wants to use pyright to contribute plugins to support those things. GitHub link: https://github.com/apache/airflow/discussions/57038#discussioncomment-14748716 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
