Skip to content

Commit

Permalink
fix: get beartype to pass (#3)
Browse files Browse the repository at this point in the history
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
  • Loading branch information
nstarman authored Jul 17, 2024
1 parent d8e0545 commit 4d9c8ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ ignore = [
"PLR09", # Too many <...>
"PLR2004", # Magic value used in comparison
"ISC001", # Conflicts with formatter
"TD002", # Missing author in TODO
"TD003", # Missing issue link on the line following this TODO
"FIX002", # Line contains TODO
]

[tool.ruff.lint.per-file-ignores]
Expand Down
2 changes: 1 addition & 1 deletion src/dataclasstools/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def replace(obj: DataclassInstance, /, **kwargs: Any) -> DataclassInstance:


@dispatch # type: ignore[misc]
def fields(obj: DataclassInstance) -> tuple[_dataclass_Field[Any], ...]:
def fields(obj: DataclassInstance) -> tuple[_dataclass_Field, ...]: # type: ignore[type-arg] # TODO: raise issue in beartype
"""Return the fields of a dataclass instance."""
return _dataclass_fields(obj)

Expand Down

0 comments on commit 4d9c8ff

Please sign in to comment.