Skip to content

Commit

Permalink
ci: fix pylint
Browse files Browse the repository at this point in the history
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
  • Loading branch information
nstarman committed Jul 17, 2024
1 parent 03fd61e commit b1a60fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ similarities.ignore-imports = "yes"
messages_control.disable = [
"design",
"fixme",
"function-redefined", # for plum-dispatch
"line-too-long",
"missing-module-docstring",
"missing-function-docstring",
Expand Down
2 changes: 1 addition & 1 deletion src/dataclasstools/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def fields(obj: Mapping[str, Any], /) -> tuple[Field, ...]: # type: ignore[type
Field(name='c',type=<class 'str'>,...))
"""
fs = tuple(field(kw_only=True) for _ in obj) # pylint: ignore=invalid-field-call
fs = tuple(field(kw_only=True) for _ in obj) # pylint: disable=invalid-field-call
for f, (k, v) in zip(fs, obj.items(), strict=True):
f.name = k
f.type = type(v)
Expand Down

0 comments on commit b1a60fc

Please sign in to comment.