Skip to content

Commit 69275a3

Browse files
committed
Add comment to say it should be removed
1 parent d703e8d commit 69275a3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pydantic_evals/pydantic_evals/_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ class LogfireNotConfiguredWarning(UserWarning):
122122
@contextmanager
123123
def logfire_span(*args: Any, **kwargs: Any) -> Generator[logfire_api.LogfireSpan, None, None]:
124124
"""Create a Logfire span without warning if logfire is not configured."""
125+
# TODO: Remove once Logfire has the ability to suppress this warning from non-user code
125126
with warnings.catch_warnings():
126127
warnings.filterwarnings('ignore', category=LogfireNotConfiguredWarning)
127128
with _logfire.span(*args, **kwargs) as span:

pydantic_graph/pydantic_graph/_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ class LogfireNotConfiguredWarning(UserWarning):
153153
@contextmanager
154154
def logfire_span(*args: Any, **kwargs: Any) -> Generator[LogfireSpan, None, None]:
155155
"""Create a Logfire span without warning if logfire is not configured."""
156+
# TODO: Remove once Logfire has the ability to suppress this warning from non-user code
156157
with warnings.catch_warnings():
157158
warnings.filterwarnings('ignore', category=LogfireNotConfiguredWarning)
158159
with _logfire.span(*args, **kwargs) as span:

0 commit comments

Comments
 (0)