Skip to content

Commit

Permalink
Ignore second pydantic import in mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Jul 5, 2023
1 parent c992a7a commit 4953f65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/lsst/pipe/base/_task_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
try:
from pydantic.v1 import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr
except ModuleNotFoundError:
from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr
from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr # type: ignore

Check warning on line 33 in python/lsst/pipe/base/_task_metadata.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/pipe/base/_task_metadata.py#L32-L33

Added lines #L32 - L33 were not covered by tests


_DEPRECATION_REASON = "Will be removed after v25."
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/pipe/base/graph/quantumNode.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
try:
from pydantic.v1 import BaseModel
except ModuleNotFoundError:
from pydantic import BaseModel
from pydantic import BaseModel # type: ignore

Check warning on line 43 in python/lsst/pipe/base/graph/quantumNode.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/pipe/base/graph/quantumNode.py#L42-L43

Added lines #L42 - L43 were not covered by tests

from ..pipeline import TaskDef

Expand Down
2 changes: 1 addition & 1 deletion python/lsst/pipe/base/tests/mocks/_storage_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
try:
import pydantic.v1 as pydantic
except ModuleNotFoundError:
import pydantic
import pydantic # type: ignore

Check warning on line 40 in python/lsst/pipe/base/tests/mocks/_storage_class.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/pipe/base/tests/mocks/_storage_class.py#L39-L40

Added lines #L39 - L40 were not covered by tests
from lsst.daf.butler import (
DatasetComponent,
Formatter,
Expand Down

0 comments on commit 4953f65

Please sign in to comment.