Skip to content

Commit 6e85549

Browse files
committed
Fixed mypy issues
1 parent 301fcaa commit 6e85549

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/openvino/stable_diffusion/export_lcm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# except in compliance with the License. See the license file found in the
55
# LICENSE file in the root directory of this source tree.
66

7-
# mypy: disable-error-code=union-attr
7+
# mypy: disable-error-code="union-attr,import-not-found"
88

99
import argparse
1010
import logging
@@ -15,7 +15,7 @@
1515
from torch.export import export
1616

1717
try:
18-
from diffusers import DiffusionPipeline
18+
from diffusers import DiffusionPipeline # type: ignore[import-not-found]
1919
except ImportError:
2020
raise ImportError(
2121
"Please install diffusers and transformers: pip install diffusers transformers"

examples/openvino/stable_diffusion/openvino_lcm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# except in compliance with the License. See the license file found in the
55
# LICENSE file in the root directory of this source tree.
66

7-
# mypy: disable-error-code=union-attr
7+
# mypy: disable-error-code="union-attr,import-not-found"
88

99
import argparse
1010
import logging

0 commit comments

Comments
 (0)