Skip to content

Commit

Permalink
move to legacy: urls
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtruong committed Aug 27, 2024
1 parent c5601f6 commit 34484dd
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion weave/init_message.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import typing

from weave import urls
from weave.legacy import urls

if typing.TYPE_CHECKING:
import packaging.version # type: ignore[import-not-found]
Expand Down
2 changes: 1 addition & 1 deletion weave/legacy/artifact_wandb.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@

from weave import (
filesystem,
urls,
util,
)
from weave import weave_types as types
from weave.legacy import (
urls,
errors,
engine_trace,
artifact_fs,
Expand Down
4 changes: 2 additions & 2 deletions weave/legacy/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import typing
from urllib.parse import urlparse

from weave import urls, util
from weave.legacy import client, context_state
from weave import util
from weave.legacy import urls, client, context_state
from weave.legacy.client_interface import ClientInterface


Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion weave/trace/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
from typing import Any, Callable, Iterator, Optional, Union

from weave.client_context import weave_client as weave_client_context
from weave.legacy import urls
from weave.trace.call_context import get_current_call

# TODO: type_serializers is imported here to trigger registration of the image serializer.
# There is probably a better place for this, but including here for now to get the fix in.
from .. import (
type_serializers, # noqa: F401
urls,
util,
weave_init,
)
Expand Down
3 changes: 2 additions & 1 deletion weave/trace/weave_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
import pydantic
from requests import HTTPError

from weave import urls, version
from weave import version
from weave.client_context import weave_client as weave_client_context
from weave.legacy import urls
from weave.trace import call_context, trace_sentry
from weave.trace.exception import exception_to_json_str
from weave.trace.feedback import FeedbackQuery, RefFeedbackQuery
Expand Down

0 comments on commit 34484dd

Please sign in to comment.