Skip to content

Commit

Permalink
Fix typing issues for s3 prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
anaynayak committed Oct 11, 2021
1 parent 3db79e5 commit 691b492
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions airflow/providers/amazon/aws/sensors/s3_prefix.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
from typing import Any, Dict, Optional, Sequence, Union
from typing import Any, Dict, List, Optional, Union

from airflow.providers.amazon.aws.hooks.s3 import S3Hook
from airflow.sensors.base import BaseSensorOperator
Expand All @@ -33,7 +33,7 @@ class S3PrefixSensor(BaseSensorOperator):
:param bucket_name: Name of the S3 bucket
:type bucket_name: str
:param prefix: The prefix being waited on. Relative path from bucket root level.
:type prefix: str or list
:type prefix: str or list of str
:param delimiter: The delimiter intended to show hierarchy.
Defaults to '/'.
:type delimiter: str
Expand All @@ -58,7 +58,7 @@ def __init__(
self,
*,
bucket_name: str,
prefix: Union[str, Sequence[str]],
prefix: Union[str, List[str]],
delimiter: str = '/',
aws_conn_id: str = 'aws_default',
verify: Optional[Union[str, bool]] = None,
Expand Down

0 comments on commit 691b492

Please sign in to comment.