Skip to content

Commit

Permalink
Remove redundant Operator suffix from sensor name (#32475)
Browse files Browse the repository at this point in the history
A Sensor is always an Operator, so adding 'Operator' to the class name
is not needed. We have a check for this.
  • Loading branch information
uranusjr committed Jul 10, 2023
1 parent 3720e28 commit 76021ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airflow/providers/sftp/decorators/sensors/sftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from airflow.providers.sftp.sensors.sftp import SFTPSensor


class _DecoratedSFTPSensorOperator(SFTPSensor):
class _DecoratedSFTPSensor(SFTPSensor):
"""
Wraps a Python callable and captures args/kwargs when called for execution.
Expand Down Expand Up @@ -67,6 +67,6 @@ def sftp_sensor_task(python_callable: Callable | None = None, **kwargs) -> TaskD
return task_decorator_factory(
python_callable=python_callable,
multiple_outputs=False,
decorated_operator_class=_DecoratedSFTPSensorOperator,
decorated_operator_class=_DecoratedSFTPSensor,
**kwargs,
)

0 comments on commit 76021ef

Please sign in to comment.