Skip to content

Commit

Permalink
freeze dataclasses (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
zunda-arrow authored Jan 30, 2023
1 parent 0dc6ce8 commit 4db8309
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sigparse/_classparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
__all__: typing.Sequence[str] = ("classparse", "ClassVar")


@dataclasses.dataclass
@dataclasses.dataclass(frozen=True)
class ClassVar:
"""
`default` is `inspect._empty` when there is no default value.
Expand Down
4 changes: 2 additions & 2 deletions sigparse/_sigparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
__all__: typing.Sequence[str] = ("sigparse", "Parameter", "Signature")


@dataclasses.dataclass
@dataclasses.dataclass(frozen=True)
class Parameter:
"""
`default` and `annotation` are `inspect._empty` when there is no default or
Expand All @@ -60,7 +60,7 @@ def has_annotation(self) -> bool:
return self.annotation is not inspect._empty


@dataclasses.dataclass
@dataclasses.dataclass(frozen=True)
class Signature:
"""
`return_annotation` is `inspect._empty` when there is no return annotation.
Expand Down

0 comments on commit 4db8309

Please sign in to comment.