Skip to content

Commit 9cdc5bb

Browse files
Update HasFault
1 parent 7a3d740 commit 9cdc5bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
# SPDX-License-Identifier: Apache-2.0
3-
from typing import ClassVar, Literal, Protocol, runtime_checkable
3+
from typing import Protocol, runtime_checkable
4+
5+
from ..exceptions import Fault
46

57

68
@runtime_checkable
@@ -10,4 +12,4 @@ class HasFault(Protocol):
1012
All modeled errors will have a fault that is either "client" or "server".
1113
"""
1214

13-
fault: ClassVar[Literal["client", "server"]]
15+
fault: Fault | None

0 commit comments

Comments
 (0)