Skip to content
Snippets Groups Projects
Commit 910b321f authored by Maurice Herné's avatar Maurice Herné
Browse files

Fix malformed string formatting

parent 6cade062
No related branches found
No related tags found
No related merge requests found
......@@ -155,13 +155,13 @@ class CellModifier(BaseModel):
if signature[sig_keys[0]].kind not in (inspect.Parameter.POSITIONAL_ONLY, inspect.Parameter.POSITIONAL_OR_KEYWORD):
raise ValueError(
f"Offending function signature: Action {self.action.__name__} must have the first parameter 'cell' as a positional argument.",
f"Found: {sig_keys[0], signature[sig_keys[0]]}",
f"Found: {sig_keys[0]}, {signature[sig_keys[0]]}",
)
if signature[sig_keys[-1]].kind != inspect.Parameter.VAR_KEYWORD:
raise ValueError(
f"Offending function signature: Action {self.action.__name__} must accept keyword arguments.",
f"The last paramter should be '**kwargs', found: {sig_keys[-1], signature[sig_keys[-1]].kind}",
f"The last paramter should be '**kwargs', found: {sig_keys[-1]}, {signature[sig_keys[-1]].kind}",
)
missing_annotations = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment