Skip to content

Commit

Permalink
Fix TypeAlias import .
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pmardziel committed Nov 16, 2024
1 parent 1100ea6 commit e2ce342
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/experimental/export_dummy_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"# Install zipkin python package:\n",
"# ! pip install opentelemetry-exporter-zipkin-proto-http\n",
"\n",
"# Start the zipkin docker container:\n",
"# Start the zipkin docker container:which\n",
"# ! docker run --rm -d -p 9411:9411 --name zipkin openzipkin/zipkin\n",
"\n",
"# Stop the zipkin docker container:\n",
Expand Down
2 changes: 1 addition & 1 deletion src/core/trulens/core/database/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
Optional,
Sequence,
Tuple,
TypeAlias,
Union,
)

import pandas as pd
import pydantic
from trulens.core._utils.pycompat import TypeAlias # import standard exception
from trulens.core.schema import app as app_schema
from trulens.core.schema import dataset as dataset_schema
from trulens.core.schema import feedback as feedback_schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
them without circular import errors. Because of this, some imports need to be
put into `if TYPE_CHECKING` blocks and classes that depend on those imports need
to be "rebuilt" with `model_rebuild`. This only applies to `pydantic.BaseModel`
classes.
classes. Type hints on non-pydantic classes are never interpreted hence no need
to "rebuild" those.
"""

from . import context as core_context
Expand Down

0 comments on commit e2ce342

Please sign in to comment.