Skip to content

Commit 24f87a3

Browse files
authored
Remove unused non-user-code-prefixes stuff (#2712)
1 parent 0a6a794 commit 24f87a3

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

pydantic_evals/pydantic_evals/dataset.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,6 @@
5050
else:
5151
ExceptionGroup = ExceptionGroup # pragma: lax no cover
5252

53-
# while waiting for https://github.com/pydantic/logfire/issues/745
54-
try:
55-
import logfire._internal.stack_info
56-
except ImportError:
57-
pass
58-
else:
59-
from pathlib import Path
60-
61-
logfire._internal.stack_info.NON_USER_CODE_PREFIXES += (str(Path(__file__).parent.absolute()),) # pyright: ignore[reportPrivateImportUsage]
62-
6353
__all__ = (
6454
'Case',
6555
'Dataset',

pydantic_graph/pydantic_graph/graph.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from contextlib import AbstractContextManager, ExitStack, asynccontextmanager
77
from dataclasses import dataclass, field
88
from functools import cached_property
9+
from pathlib import Path
910
from typing import Any, Generic, cast, overload
1011

1112
import logfire_api
@@ -18,17 +19,6 @@
1819
from .persistence import BaseStatePersistence
1920
from .persistence.in_mem import SimpleStatePersistence
2021

21-
# while waiting for https://github.com/pydantic/logfire/issues/745
22-
try:
23-
import logfire._internal.stack_info
24-
except ImportError:
25-
pass
26-
else:
27-
from pathlib import Path
28-
29-
logfire._internal.stack_info.NON_USER_CODE_PREFIXES += (str(Path(__file__).parent.absolute()),) # pyright: ignore[reportPrivateImportUsage]
30-
31-
3222
__all__ = 'Graph', 'GraphRun', 'GraphRunResult'
3323

3424
_logfire = logfire_api.Logfire(otel_scope='pydantic-graph')

0 commit comments

Comments
 (0)