mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-12 15:20:51 +08:00
Fix pylint error
This commit is contained in:
parent
005459ee77
commit
a9347c6713
@ -57,9 +57,9 @@ if hasattr(torch.serialization, "add_safe_globals"): # TODO: this was added in
|
||||
|
||||
ModelCheckpoint.__module__ = "pytorch_lightning.callbacks.model_checkpoint"
|
||||
|
||||
from numpy.core.multiarray import scalar
|
||||
from numpy.core.multiarray import scalar # pylint: disable=no-name-in-module
|
||||
from numpy import dtype
|
||||
from numpy.dtypes import Float64DType
|
||||
from numpy.dtypes import Float64DType # pylint: disable=no-name-in-module
|
||||
from _codecs import encode
|
||||
|
||||
torch.serialization.add_safe_globals([ModelCheckpoint, scalar, dtype, Float64DType, encode])
|
||||
|
||||
@ -69,4 +69,5 @@ skia-python
|
||||
pebble>=5.0.7
|
||||
openai
|
||||
anthropic
|
||||
humanize
|
||||
humanize
|
||||
lightning
|
||||
Loading…
Reference in New Issue
Block a user