Skip to content

Fix/Ignore type check#2002

Closed
pankajastro wants to merge 3 commits into
mainfrom
fix_type_check
Closed

Fix/Ignore type check#2002
pankajastro wants to merge 3 commits into
mainfrom
fix_type_check

Conversation

@pankajastro
Copy link
Copy Markdown
Contributor

No description provided.

@netlify
Copy link
Copy Markdown

netlify Bot commented Sep 26, 2025

Deploy Preview for sunny-pastelito-5ecb04 canceled.

Name Link
🔨 Latest commit a389405
🔍 Latest deploy log https://app.netlify.com/projects/sunny-pastelito-5ecb04/deploys/68d6454f0f72ec0008bf0ef2

@pankajastro pankajastro changed the title Fix type check Fix/Ignore type check Sep 26, 2025
Comment thread .github/workflows/test.yml Outdated
Comment thread pyproject.toml
strict = true
ignore_missing_imports = true
no_warn_unused_ignores = true
disable_error_code = ["misc"]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of errors related to this check. shall we create an issue to track it?

cosmos/operators/local.py:970: error: Definition of "log" in base class "AbstractDbtBase" is incompatible with definition in base class "DAGNode"  [misc]
cosmos/operators/local.py:1009: error: Definition of "log" in base class "AbstractDbtBase" is incompatible with definition in base class "DAGNode"  [misc]
cosmos/operators/local.py:1020: error: Definition of "log" in base class "AbstractDbtBase" is incompatible with definition in base class "DAGNode"  [misc]
cosmos/operators/local.py:1031: error: Definition of "log" in base class "AbstractDbtBase" is incompatible with definition in base class "DAGNode"  [misc]
cosmos/operators/local.py:1042: error: Definition of "log" in base class "AbstractDbtBase" is incompatible with definition in base class "DAGNode"  [misc]
cosmos/operators/local.py:1081: error: Definition of "log" in base class "AbstractDbtBase" is incompatible with definition in base class "DAGNode"  [misc]
cosmos/operators/local.py:1092: error: Definition of "log" in base class "AbstractDbtBase" is incompatible with definition in base class "DAGNode"  [misc]
cosmos/operators/local.py:1144: error: Definition of "log" in base class "AbstractDbtBase" is incompatible with definition in base class "DAGNode"  [misc]
cosmos/operators/local.py:1185: error: Definition of "log" in base class "AbstractDbtBase" is incompatible with definition in base class "DAGNode"  [misc]
cosmos/operators/local.py:1386: error: Definition of "log" in base class "AbstractDbtBase" is incompatible with definition in base class "DAGNode"  [misc]
cosmos/operators/local.py:1394: error: Definition of "log" in base class "AbstractDbtBase" is incompatible with definition in base class "DAGNode"  [misc]
cosmos/operators/watcher.py:19: error: Name "BaseSensorOperator" already defined (possibly by an import)  [no-redef]
cosmos/operators/virtualenv.py:238: error: Definition of "log" in base class "AbstractDbtBase" is incompatible with definition in base class "DAGNode"  [misc]
cosmos/operators/virtualenv.py:260: error: Definition of "log" in base class "AbstractDbtBase" is incompatible with definition in base class "DAGNode"  [misc]
cosmos/operators/virtualenv.py:272: error: Definition of "log" in base class "AbstractDbtBase" is incompatible with definition in base class "DAGNode"  [misc]
cosmos/operators/virtualenv.py:294: error: Definition of "log" in base class "AbstractDbtBase" is incompatible with definition in base class "DAGNode"  [misc]
cosmos/operators/virtualenv.py:316: error: Definition of "log" in base class "AbstractDbtBase" is incompatible with definition in base class "DAGNode"  [misc]
cosmos/operators/virtualenv.py:328: error: Definition of "log" in base class "AbstractDbtBase" is incompatible with definition in base class "DAGNode"  [misc]
cosmos/airflow/task_group.py:14: error: Class cannot subclass "TaskGroup" (has type "Any")  [misc]
cosmos/airflow/dag.py:14: error: Class cannot subclass "DAG" (has type "Any")  [misc]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should disable this misc error code altogether

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have 17 type: ignore[misc] in the main branch, unless we align our classes with upstream unsure what we could do.

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 26, 2025

Codecov Report

❌ Patch coverage is 95.23810% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 97.76%. Comparing base (5f0eb5d) to head (a389405).

Files with missing lines Patch % Lines
cosmos/plugin/plugin_impl.py 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2002      +/-   ##
==========================================
- Coverage   97.77%   97.76%   -0.02%     
==========================================
  Files          87       87              
  Lines        5446     5455       +9     
==========================================
+ Hits         5325     5333       +8     
- Misses        121      122       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@pankajastro
Copy link
Copy Markdown
Contributor Author

closing in favour of #2003

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants