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
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,13 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
from __future__ import annotations

import sys

if sys.version_info >= (3, 11):
from typing import Self
else:
from typing_extensions import Self

__all__ = ["Self"]
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from typing import TYPE_CHECKING, Protocol

if TYPE_CHECKING:
from airflow.typing_compat import Self
from .. import Self

DeltaType = int | float | datetime.timedelta

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import structlog

if TYPE_CHECKING:
from airflow.typing_compat import Self
from .. import Self

log = structlog.getLogger(__name__)

Expand Down