Skip to content

Commit 856fcbf

Browse files
committed
Fix too long lines
Signed-off-by: Fynn Schmitt-Ulms <[email protected]>
1 parent 67125fb commit 856fcbf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/speculators/models/independent.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def from_dict(
2929
cls, config_dict: dict[str, Any], **kwargs
3030
) -> "IndependentSpeculatorConfig":
3131
"""
32-
Create a IndependentSpeculatorConfig from a dictionary, automatically instantiating
33-
the correct subclass based on the speculators_model_type field.
32+
Create a IndependentSpeculatorConfig from a dictionary, automatically
33+
instantiating the correct subclass based on the speculators_model_type field.
3434
3535
:param config_dict: Dictionary containing the configuration
3636
:param kwargs: Additional keyword arguments that override config values
@@ -122,8 +122,10 @@ def __init__(
122122
and config.speculators_model_type != "independent"
123123
):
124124
raise ValueError(
125-
f"Attempted to initialize a IndependentSpeculator with a {config.speculators_model_type} config class."
126-
"IndependentSpeculator only supports models with speculators_model_type='independent'."
125+
"Attempted to initialize a IndependentSpeculator with a "
126+
f"{config.speculators_model_type} config class. "
127+
"IndependentSpeculator only supports models with "
128+
"speculators_model_type='independent'."
127129
)
128130
# Subclass of PretrainedConfig but not an IndependentSpeculatorConfig
129131
# Convert to IndependentSpeculatorConfig

0 commit comments

Comments
 (0)