Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ repos:
entry: ./scripts/ci/pre_commit/update_common_sql_api_stubs.py
language: python
files: ^scripts/ci/pre_commit/update_common_sql_api\.py|^providers/src/airflow/providers/common/sql/.*\.pyi?$
additional_dependencies: ['rich>=12.4.4', 'mypy==1.9.0', 'black==23.10.0', 'jinja2']
additional_dependencies: ['rich>=12.4.4', 'mypy==1.12.0', 'black==23.10.0', 'jinja2']
pass_filenames: false
require_serial: true
- id: update-black-version
Expand Down
2 changes: 1 addition & 1 deletion airflow/models/dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -2205,7 +2205,7 @@ def pickle(self, session=NEW_SESSION) -> DagPickle:
def task(self) -> TaskDecoratorCollection:
from airflow.decorators import task

return cast("TaskDecoratorCollection", functools.partial(task, dag=self))
return cast("TaskDecoratorCollection", functools.partial(task, dag=self)) # type: ignore[misc]

def add_task(self, task: Operator) -> None:
"""
Expand Down
2 changes: 1 addition & 1 deletion hatch_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
# TODO: upgrade to newer versions of MyPy continuously as they are released
# Make sure to upgrade the mypy version in update-common-sql-api-stubs in .pre-commit-config.yaml

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

should be updated in update-common-sql-api-stubs as per comment?

# when you upgrade it here !!!!
"mypy==1.9.0",
"mypy==1.12.0",
"types-Deprecated",
"types-Markdown",
"types-PyMySQL",
Expand Down
2 changes: 1 addition & 1 deletion tests/dags/test_task_view_type_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def a_function(_, __):
"""A function with two args"""


partial_function = functools.partial(a_function, arg_x=1)
partial_function = functools.partial(a_function, 1)
class_instance = CallableClass()

logger.info("class_instance type: %s", type(class_instance))
Expand Down