Skip to content

Commit ea112c6

Browse files
authored
Merge pull request #134 from dapper91/fix/errors
- fix: exceptions not frozen dataclasses anymore.
2 parents a124fc1 + 7b3290a commit ea112c6

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎pjrpc/client/exceptions.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
]
2121

2222

23-
@dc.dataclass(frozen=True)
23+
@dc.dataclass
2424
class JsonRpcError(exceptions.JsonRpcError):
2525
"""
2626
Client JSON-RPC error.

‎pjrpc/common/exceptions.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class DeserializationError(ProtocolError, ValueError):
3535
"""
3636

3737

38-
@dc.dataclass(frozen=True)
38+
@dc.dataclass
3939
class JsonRpcError(BaseError):
4040
"""
4141
`JSON-RPC <https://www.jsonrpc.org>`_ protocol error.

‎pjrpc/server/exceptions.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
]
2121

2222

23-
@dc.dataclass(frozen=True)
23+
@dc.dataclass
2424
class JsonRpcError(exceptions.JsonRpcError):
2525
"""
2626
Server JSON-RPC error.

0 commit comments

Comments
 (0)