Skip to content

Commit

Permalink
fix(typing): Quote PathLike for older versions of Python
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed Feb 8, 2022
1 parent 2c7cdaa commit b775a56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion airflow_dbt_python/hooks/backends/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Ensures methods for pulling and pushing files are defined.
"""
from __future__ import annotations

from abc import ABC, abstractmethod
from os import PathLike
from pathlib import Path
Expand All @@ -10,7 +12,7 @@

from airflow.utils.log.logging_mixin import LoggingMixin

StrPath = Union[str, PathLike[str]]
StrPath = Union[str, "PathLike[str]"]


class DbtBackend(ABC, LoggingMixin):
Expand Down

0 comments on commit b775a56

Please sign in to comment.