Skip to content

Commit

Permalink
style(core): fix mypy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-W committed Apr 9, 2024
1 parent 8341c82 commit d15f8ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions astronomer/providers/core/sensors/filesystem.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from __future__ import annotations

import os
import warnings
from datetime import timedelta
from typing import Any, Dict, Optional
from typing import Any

from airflow.hooks.filesystem import FSHook
from airflow.sensors.filesystem import FileSensor
Expand Down Expand Up @@ -54,7 +56,7 @@ def execute(self, context: Context) -> None:
method_name="execute_complete",
)

def execute_complete(self, context: Context, event: Optional[Dict[str, Any]]) -> None:
def execute_complete(self, context: Context, event: bool | None = None) -> None:
"""
Callback for when the trigger fires - returns immediately.
Relies on trigger to throw an exception, otherwise it assumes execution was
Expand Down

0 comments on commit d15f8ae

Please sign in to comment.