Skip to content

Commit

Permalink
fix import in script for use by typer (#982)
Browse files Browse the repository at this point in the history
Co-authored-by: Eddie Schlafly <[email protected]>
  • Loading branch information
zacharyburnett and schlafly authored Nov 20, 2023
1 parent 2a234a3 commit 7eaf91e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ dev = [
]
sdp = [
'stpreview>=0.5.1',
'typer',
'typing_extensions',
]

[project.urls]
Expand Down
6 changes: 2 additions & 4 deletions romancal/scripts/static_preview.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
from pathlib import Path
from typing import TYPE_CHECKING, Optional
from typing import Optional

import asdf
import numpy

if TYPE_CHECKING:
from typing_extensions import Annotated


def command():
try:
Expand All @@ -17,6 +14,7 @@ def command():
percentile_normalization,
write_image,
)
from typing_extensions import Annotated
except (ImportError, ModuleNotFoundError):
raise ImportError(
'SDP requirements not installed; do `pip install "romancal[sdp]"`'
Expand Down

0 comments on commit 7eaf91e

Please sign in to comment.