Skip to content

Commit

Permalink
Fix mutable serializer type hint
Browse files Browse the repository at this point in the history
Summary: Fix the mutable type serializer typing, `GeneratedError` -> `MutableGeneratedError`

Reviewed By: createdbysk

Differential Revision: D66938381

fbshipit-source-id: 452931b02421e8157022954714b9593107bcd06b
  • Loading branch information
yoney authored and facebook-github-bot committed Dec 8, 2024
1 parent 52d53c1 commit 2435ff7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
import typing

from folly.iobuf import IOBuf
from thrift.python.exceptions import GeneratedError
from thrift.python.mutable_exceptions import MutableGeneratedError
from thrift.python.mutable_types import MutableStructOrUnion
from thrift.python.protocol import Protocol as _Protocol

sT = typing.TypeVar("sT", bound=typing.Union[MutableStructOrUnion, GeneratedError])
sT = typing.TypeVar(
"sT", bound=typing.Union[MutableStructOrUnion, MutableGeneratedError]
)

Protocol = _Protocol

Expand Down

0 comments on commit 2435ff7

Please sign in to comment.