Skip to content
Merged
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 @@ -4,6 +4,10 @@
# WHEN DEPRECATED FIELDS ARE ACCESSED

import warnings

# ignore the SyntaxWarning in the Airbyte log messages, during the string evaluation
warnings.filterwarnings("ignore", category=SyntaxWarning)

from typing import Any, List

from pydantic.v1 import BaseModel
Expand All @@ -12,9 +16,10 @@

# format the warning message
warnings.formatwarning = (
lambda message, category, *args, **kwargs: f"{category.__name__}: {message}"
lambda message, category, *args, **kwargs: f"{category.__name__}: {message}\n"
)


FIELDS_TAG = "__fields__"
DEPRECATED = "deprecated"
DEPRECATION_MESSAGE = "deprecation_message"
Expand Down
Loading