Skip to content

Commit

Permalink
Fix coverage and minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
wesselb committed Jun 12, 2024
1 parent 6de73bf commit 9e23f75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plum/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
T = TypeVar("T", bound=Callable[..., Any])


_dataclass_kwargs: Dict[str, Any] = {}
if sys.version_info >= (3, 10):
_dataclass_kwargs |= {"slots": True}
_dataclass_kw_args: Dict[str, Any] = {}
if sys.version_info >= (3, 10): # pragma: specific no cover 3.8 3.9
_dataclass_kw_args |= {"slots": True}


@dataclass(frozen=True, **_dataclass_kwargs)
@dataclass(frozen=True, **_dataclass_kw_args)
class Dispatcher:
"""A namespace for functions.
Expand Down

0 comments on commit 9e23f75

Please sign in to comment.