-
-
Notifications
You must be signed in to change notification settings - Fork 39
Fix compatibility #158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix compatibility #158
Conversation
For compatibility with apache-airflow-providers-snowflake>=6.3.0 apache/airflow#49467
[tool.black] | ||
line-length = 88 | ||
target-version = ["py39", "py310", "py311", "py312"] | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
/( | ||
\.eggs | ||
| \.git | ||
| \.hg | ||
| \.mypy_cache | ||
| \.tox | ||
| \.venv | ||
| _build | ||
| buck-out | ||
| build | ||
| dist | ||
)/ | ||
''' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for removing this
def try_decode_base64(s: str) -> str: | ||
"""Attempt to decode a string from base64. | ||
If the string is not valid base64, returns the original value. | ||
Args: | ||
s: The string to decode. | ||
Returns: | ||
The decoded string, or the original value if decoding fails. | ||
""" | ||
try: | ||
s = base64.b64decode(s, validate=True).decode("utf-8") | ||
except binascii.Error: | ||
pass | ||
return s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've bumped uv.lock both to review it and to get the new airflow-dbt-python in there.
This will be good to merge once CI is green. Thank you for your contribution.
I will cut a release for 3.0.3 later today. |
No description provided.