Skip to content
Merged
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 @@ -221,7 +221,7 @@ repos:
hooks:
- id: isort
name: Run isort to sort imports in Python files
files: \.py$
files: \.py|\.pyi$
# To keep consistent with the global isort skip config defined in setup.cfg
exclude: ^build/.*$|^.tox/.*$|^venv/.*$|^airflow/_vendor/
- repo: https://github.com/pycqa/pydocstyle
Expand Down
1 change: 1 addition & 0 deletions airflow/providers/alibaba/cloud/operators/oss.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
# validating how required arguments can be passed to operators/sensors via `default_args`.

from typing import Optional

from airflow.models import BaseOperator

class OSSCreateBucketOperator(BaseOperator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.
#
from typing import Optional, Any
from typing import Any, Optional

from airflow.models import BaseOperator

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.
#
from typing import Optional, Union, Sequence
from typing import Optional, Sequence, Union

from airflow.models import BaseOperator

Expand Down
2 changes: 1 addition & 1 deletion airflow/utils/context.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# undefined attribute errors from Mypy. Hopefully there will be a mechanism to
# declare "these are defined, but don't error if others are accessed" someday.

from typing import Any, Container, Mapping, Optional, Union, Mapping
from typing import Any, Container, Mapping, Optional, Union

from pendulum import DateTime

Expand Down