Skip to content

Commit

Permalink
Added required imports (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raalsky authored Feb 17, 2023
1 parent e163172 commit 3ebeac3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/neptune_fastai/impl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
try:
# neptune-client=0.9.0+ package structure
import neptune.new as neptune
from neptune.new import Run
from neptune.new.handler import Handler
from neptune.new.integrations.utils import (
expect_not_an_experiment,
verify_type,
Expand All @@ -51,7 +53,9 @@
except ImportError:
# neptune-client>=1.0.0 package structure
import neptune # isort:skip
from neptune.integrations.utils import expect_not_an_experiment, verify_type # isort:skip
from neptune.integrations.utils import expect_not_an_experiment, verify_type
from neptune.handler import Handler
from neptune import Run
from neptune.types import File # isort:skip
from neptune.utils import stringify_unsupported

Expand Down Expand Up @@ -136,7 +140,7 @@ class NeptuneCallback(Callback):

def __init__(
self,
run: Union[neptune.Run, neptune.handler.Handler],
run: Union[Run, Handler],
base_namespace: str = "",
upload_saved_models: Optional[str] = "all",
**kwargs,
Expand Down

0 comments on commit 3ebeac3

Please sign in to comment.