Skip to content

Commit

Permalink
Address endpointing type Attribute in LiveOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
dvonthenen committed Jul 3, 2024
1 parent f56eb9c commit bb063d1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deepgram/clients/listen/v1/websocket/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,15 @@ class LiveOptions(DataClassJsonMixin): # pylint: disable=too-many-instance-attr
encoding: Optional[str] = field(
default=None, metadata=dataclass_config(exclude=lambda f: f is None)
)
# pylint: disable=W0511
# TODO: endpointing's current type previous was `Optional[str]` which is incorrect
# for backward compatibility we are keeping it as `Optional[Union[str, bool, int]]`
# since it gets translated to a string to be placed as a query parameter, will keep `str` for now
# but will change this to `Optional[Union[bool, int]]` in a future release
endpointing: Optional[Union[str, bool, int]] = field(
default=None, metadata=dataclass_config(exclude=lambda f: f is None)
)
# pylint: enable=W0511
extra: Optional[Union[List[str], str]] = field(
default=None, metadata=dataclass_config(exclude=lambda f: f is None)
)
Expand Down

0 comments on commit bb063d1

Please sign in to comment.