-
Notifications
You must be signed in to change notification settings - Fork 114
Missing Exported Class Names #431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Exported Class Names #431
Conversation
WalkthroughThe changes primarily involve renaming imports and adding new imports related to speech-to-text and text-to-speech functionalities in various Deepgram client modules. This includes reorganizing imports for REST and WebSocket interactions, updating options and client references, and modifying configuration setups in example scripts. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (5)
- deepgram/init.py (2 hunks)
- deepgram/client.py (1 hunks)
- deepgram/clients/init.py (5 hunks)
- deepgram/clients/listen/init.py (1 hunks)
- deepgram/clients/listen/client.py (1 hunks)
Additional context used
Learnings (5)
deepgram/clients/listen/__init__.py (7)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:42-50 Timestamp: 2024-07-01T19:13:28.504Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:54-55 Timestamp: 2024-07-01T19:13:11.612Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:37-38 Timestamp: 2024-07-01T19:13:29.909Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:19-24 Timestamp: 2024-07-01T19:14:20.539Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:10-13 Timestamp: 2024-07-01T19:14:11.334Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.deepgram/clients/listen/client.py (6)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:37-38 Timestamp: 2024-07-01T19:13:29.909Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:54-55 Timestamp: 2024-07-01T19:13:11.612Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:42-50 Timestamp: 2024-07-01T19:13:28.504Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:19-24 Timestamp: 2024-07-01T19:14:20.539Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:10-13 Timestamp: 2024-07-01T19:14:11.334Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.deepgram/clients/__init__.py (7)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:42-50 Timestamp: 2024-07-01T19:13:28.504Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:19-24 Timestamp: 2024-07-01T19:14:20.539Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:37-38 Timestamp: 2024-07-01T19:13:29.909Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:54-55 Timestamp: 2024-07-01T19:13:11.612Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:10-13 Timestamp: 2024-07-01T19:14:11.334Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.deepgram/__init__.py (8)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:42-50 Timestamp: 2024-07-01T19:13:28.504Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:37-38 Timestamp: 2024-07-01T19:13:29.909Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:54-55 Timestamp: 2024-07-01T19:13:11.612Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:19-24 Timestamp: 2024-07-01T19:14:20.539Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:10-13 Timestamp: 2024-07-01T19:14:11.334Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/__init__.py:16-19 Timestamp: 2024-07-01T19:12:57.715Z Learning: Unused imports in `deepgram/clients/speak/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.deepgram/client.py (7)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:37-38 Timestamp: 2024-07-01T19:13:29.909Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:54-55 Timestamp: 2024-07-01T19:13:11.612Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:42-50 Timestamp: 2024-07-01T19:13:28.504Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:19-24 Timestamp: 2024-07-01T19:14:20.539Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:10-13 Timestamp: 2024-07-01T19:14:11.334Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.
Ruff
deepgram/clients/listen/__init__.py
54-54:
.client.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
55-55:
.client.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
56-56:
.client.ListenWebSocketClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
57-57:
.client.AsyncListenWebSocketClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/__init__.py
36-36:
.live.AsyncLiveClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
40-40:
.listen.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
40-40:
.listen.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
44-44:
.listen.PrerecordedOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
64-64:
.listen.LiveOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
97-97:
.analyze.SyncAnalyzeResponseimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
103-103:
.speak.SpeakOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
109-109:
.speak.SpeakWebSocketEventsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
113-113:
.speak.SpeakClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
114-114:
.speak.SpeakRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
120-120:
.speak.SpeakRESTResponseimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
125-125:
.speak.SpeakWebSocketClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
126-126:
.speak.AsyncSpeakWebSocketClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/__init__.py
46-46:
.client.ErrorResponseimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
50-50:
.client.LiveClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
50-50:
.client.AsyncLiveClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
51-51:
.client.ListenWebSocketClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
51-51:
.client.AsyncListenWebSocketClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
52-52:
.client.LiveTranscriptionEventsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
53-53:
.client.LiveOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
66-66:
.client.PreRecordedClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
66-66:
.client.AsyncPreRecordedClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
67-67:
.client.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
67-67:
.client.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
69-69:
.client.PrerecordedOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
70-70:
.client.PreRecordedStreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/client.py
36-36:
.clients.LiveClientimported but unusedRemove unused import
(F401)
36-36:
.clients.AsyncLiveClientimported but unusedRemove unused import
(F401)
38-38:
.clients.ListenRESTClientimported but unusedRemove unused import
(F401)
39-39:
.clients.AsyncListenRESTClientimported but unusedRemove unused import
(F401)
40-40:
.clients.ListenWebSocketClientimported but unusedRemove unused import
(F401)
41-41:
.clients.AsyncListenWebSocketClientimported but unusedRemove unused import
(F401)
44-44:
.clients.LiveOptionsimported but unusedRemove unused import
(F401)
45-45:
.clients.LiveTranscriptionEventsimported but unusedRemove unused import
(F401)
Additional comments not posted (17)
deepgram/clients/listen/__init__.py (2)
54-54: Retain unused import for backward compatibility.The import for
ListenRESTClientis flagged as unused by static analysis tools. However, based on previous learnings, unused imports are retained to maintain backward compatibility.Tools
Ruff
54-54:
.client.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
55-55: Retain unused import for backward compatibility.The import for
AsyncListenRESTClientis flagged as unused by static analysis tools. However, based on previous learnings, unused imports are retained to maintain backward compatibility.Tools
Ruff
55-55:
.client.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/listen/client.py (4)
84-84: Assignment looks good.The assignment of
ListenRESTClienttoListenRESTClientLatestaligns with the context of updating to the latest client versions.
85-85: Assignment looks good.The assignment of
AsyncListenRESTClienttoAsyncListenRESTClientLatestaligns with the context of updating to the latest client versions.
85-85: Assignment looks good.The assignment of
ListenWebSocketClienttoListenWebSocketClientLatestaligns with the context of updating to the latest client versions.
85-85: Assignment looks good.The assignment of
AsyncListenWebSocketClienttoAsyncListenWebSocketClientLatestaligns with the context of updating to the latest client versions.deepgram/clients/__init__.py (4)
40-40: Retain unused import for backward compatibility.The import for
ListenRESTClientis flagged as unused by static analysis tools. However, based on previous learnings, unused imports are retained to maintain backward compatibility.Tools
Ruff
40-40:
.listen.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
40-40:
.listen.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
40-40: Retain unused import for backward compatibility.The import for
AsyncListenRESTClientis flagged as unused by static analysis tools. However, based on previous learnings, unused imports are retained to maintain backward compatibility.Tools
Ruff
40-40:
.listen.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
40-40:
.listen.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
60-60: Retain unused import for backward compatibility.The import for
ListenWebSocketClientis flagged as unused by static analysis tools. However, based on previous learnings, unused imports are retained to maintain backward compatibility.
60-60: Retain unused import for backward compatibility.The import for
AsyncListenWebSocketClientis flagged as unused by static analysis tools. However, based on previous learnings, unused imports are retained to maintain backward compatibility.deepgram/__init__.py (4)
51-51: Retain unused import for backward compatibility.The import for
ListenWebSocketClientis flagged as unused by static analysis tools. However, based on previous learnings, unused imports are retained to maintain backward compatibility.Tools
Ruff
51-51:
.client.ListenWebSocketClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
51-51:
.client.AsyncListenWebSocketClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
51-51: Retain unused import for backward compatibility.The import for
AsyncListenWebSocketClientis flagged as unused by static analysis tools. However, based on previous learnings, unused imports are retained to maintain backward compatibility.Tools
Ruff
51-51:
.client.ListenWebSocketClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
51-51:
.client.AsyncListenWebSocketClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
67-67: Retain unused import for backward compatibility.The import for
ListenRESTClientis flagged as unused by static analysis tools. However, based on previous learnings, unused imports are retained to maintain backward compatibility.Tools
Ruff
67-67:
.client.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
67-67:
.client.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
67-67: Retain unused import for backward compatibility.The import for
AsyncListenRESTClientis flagged as unused by static analysis tools. However, based on previous learnings, unused imports are retained to maintain backward compatibility.Tools
Ruff
67-67:
.client.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
67-67:
.client.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/client.py (3)
36-36: Verify the necessity of backward compatibility imports.The imports for
LiveClientandAsyncLiveClientare marked for backward compatibility but are unused according to static analysis.Ensure that these imports are necessary for maintaining backward compatibility. If not, consider removing them.
Tools
Ruff
36-36:
.clients.LiveClientimported but unusedRemove unused import
(F401)
36-36:
.clients.AsyncLiveClientimported but unusedRemove unused import
(F401)
38-42: Verify the necessity of new client imports.The imports for
ListenRESTClient,AsyncListenRESTClient,ListenWebSocketClient, andAsyncListenWebSocketClientare added but are unused according to static analysis.Ensure that these imports are necessary and used within the file. If not, consider removing them.
Tools
Ruff
38-38:
.clients.ListenRESTClientimported but unusedRemove unused import
(F401)
39-39:
.clients.AsyncListenRESTClientimported but unusedRemove unused import
(F401)
40-40:
.clients.ListenWebSocketClientimported but unusedRemove unused import
(F401)
41-41:
.clients.AsyncListenWebSocketClientimported but unusedRemove unused import
(F401)
44-45: Verify the necessity of new options and events imports.The imports for
LiveOptionsandLiveTranscriptionEventsare added but are unused according to static analysis.Ensure that these imports are necessary and used within the file. If not, consider removing them.
Tools
Ruff
44-44:
.clients.LiveOptionsimported but unusedRemove unused import
(F401)
45-45:
.clients.LiveTranscriptionEventsimported but unusedRemove unused import
(F401)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (17)
- deepgram/init.py (3 hunks)
- deepgram/client.py (3 hunks)
- deepgram/clients/init.py (4 hunks)
- deepgram/clients/listen/init.py (3 hunks)
- deepgram/clients/listen/client.py (5 hunks)
- deepgram/clients/listen/v1/init.py (2 hunks)
- deepgram/clients/listen/v1/rest/init.py (1 hunks)
- deepgram/clients/listen/v1/rest/options.py (1 hunks)
- deepgram/clients/listen/v1/websocket/init.py (1 hunks)
- deepgram/clients/listen/v1/websocket/options.py (1 hunks)
- deepgram/clients/speak/init.py (1 hunks)
- deepgram/clients/speak/client.py (2 hunks)
- deepgram/clients/speak/v1/init.py (1 hunks)
- deepgram/clients/speak/v1/rest/async_client.py (7 hunks)
- deepgram/clients/speak/v1/rest/client.py (7 hunks)
- deepgram/clients/speak/v1/websocket/async_client.py (4 hunks)
- deepgram/clients/speak/v1/websocket/client.py (4 hunks)
Files skipped from review due to trivial changes (3)
- deepgram/clients/listen/v1/rest/options.py
- deepgram/clients/listen/v1/websocket/options.py
- deepgram/clients/speak/v1/websocket/async_client.py
Files skipped from review as they are similar to previous changes (1)
- deepgram/clients/listen/client.py
Additional context used
Learnings (11)
deepgram/clients/listen/v1/websocket/__init__.py (2)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.deepgram/clients/listen/v1/rest/__init__.py (8)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/rest/options.py:12-12 Timestamp: 2024-07-01T19:12:36.972Z Learning: Unused imports in `deepgram/clients/listen/v1/rest/options.py` are retained to maintain backwards compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:37-38 Timestamp: 2024-07-01T19:13:29.909Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:54-55 Timestamp: 2024-07-01T19:13:11.612Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:19-24 Timestamp: 2024-07-01T19:14:20.539Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:42-50 Timestamp: 2024-07-01T19:13:28.504Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:10-13 Timestamp: 2024-07-01T19:14:11.334Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:6-6 Timestamp: 2024-07-01T18:18:02.415Z Learning: Imports for DeepgramClientOptions and ClientOptionsFromEnv in deepgram/clients/listen/__init__.py should not be flagged as unused in reviews.deepgram/clients/speak/v1/__init__.py (4)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/__init__.py:16-19 Timestamp: 2024-07-01T19:12:57.715Z Learning: Unused imports in `deepgram/clients/speak/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/v1/websocket/__init__.py:11-11 Timestamp: 2024-07-01T19:14:53.172Z Learning: User dvonthenen prefers to retain unused imports in the codebase to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/v1/websocket/__init__.py:14-14 Timestamp: 2024-07-01T19:14:41.918Z Learning: User dvonthenen prefers to retain unused imports in the codebase to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/v1/websocket/__init__.py:10-10 Timestamp: 2024-07-01T19:14:59.869Z Learning: User dvonthenen prefers to retain unused imports in the codebase to maintain backward compatibility, even if they are flagged as unused.deepgram/clients/speak/__init__.py (4)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/__init__.py:16-19 Timestamp: 2024-07-01T19:12:57.715Z Learning: Unused imports in `deepgram/clients/speak/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#424 File: deepgram/client.py:81-81 Timestamp: 2024-06-27T00:06:01.811Z Learning: Imports for SpeakStreamClient and AsyncSpeakStreamClient in `deepgram/client.py` are necessary for export purposes and should not be flagged as unused in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/v1/websocket/__init__.py:11-11 Timestamp: 2024-07-01T19:14:53.172Z Learning: User dvonthenen prefers to retain unused imports in the codebase to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/v1/websocket/__init__.py:14-14 Timestamp: 2024-07-01T19:14:41.918Z Learning: User dvonthenen prefers to retain unused imports in the codebase to maintain backward compatibility.deepgram/clients/listen/__init__.py (9)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/rest/options.py:12-12 Timestamp: 2024-07-01T19:12:36.972Z Learning: Unused imports in `deepgram/clients/listen/v1/rest/options.py` are retained to maintain backwards compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:54-55 Timestamp: 2024-07-01T19:13:11.612Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:37-38 Timestamp: 2024-07-01T19:13:29.909Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:42-50 Timestamp: 2024-07-01T19:13:28.504Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:19-24 Timestamp: 2024-07-01T19:14:20.539Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:10-13 Timestamp: 2024-07-01T19:14:11.334Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:6-6 Timestamp: 2024-07-01T18:18:02.415Z Learning: Imports for DeepgramClientOptions and ClientOptionsFromEnv in deepgram/clients/listen/__init__.py should not be flagged as unused in reviews.deepgram/clients/listen/v1/__init__.py (9)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:37-38 Timestamp: 2024-07-01T19:13:29.909Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:54-55 Timestamp: 2024-07-01T19:13:11.612Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/rest/options.py:12-12 Timestamp: 2024-07-01T19:12:36.972Z Learning: Unused imports in `deepgram/clients/listen/v1/rest/options.py` are retained to maintain backwards compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:42-50 Timestamp: 2024-07-01T19:13:28.504Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:19-24 Timestamp: 2024-07-01T19:14:20.539Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:10-13 Timestamp: 2024-07-01T19:14:11.334Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:6-6 Timestamp: 2024-07-01T18:18:02.415Z Learning: Imports for DeepgramClientOptions and ClientOptionsFromEnv in deepgram/clients/listen/__init__.py should not be flagged as unused in reviews.deepgram/clients/speak/client.py (3)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/v1/websocket/__init__.py:11-11 Timestamp: 2024-07-01T19:14:53.172Z Learning: User dvonthenen prefers to retain unused imports in the codebase to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/v1/websocket/__init__.py:14-14 Timestamp: 2024-07-01T19:14:41.918Z Learning: User dvonthenen prefers to retain unused imports in the codebase to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/v1/websocket/__init__.py:10-10 Timestamp: 2024-07-01T19:14:59.869Z Learning: User dvonthenen prefers to retain unused imports in the codebase to maintain backward compatibility, even if they are flagged as unused.deepgram/clients/__init__.py (7)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:42-50 Timestamp: 2024-07-01T19:13:28.504Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:19-24 Timestamp: 2024-07-01T19:14:20.539Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:37-38 Timestamp: 2024-07-01T19:13:29.909Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:54-55 Timestamp: 2024-07-01T19:13:11.612Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:10-13 Timestamp: 2024-07-01T19:14:11.334Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.deepgram/__init__.py (9)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:37-38 Timestamp: 2024-07-01T19:13:29.909Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:54-55 Timestamp: 2024-07-01T19:13:11.612Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:42-50 Timestamp: 2024-07-01T19:13:28.504Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:19-24 Timestamp: 2024-07-01T19:14:20.539Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:10-13 Timestamp: 2024-07-01T19:14:11.334Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/__init__.py:16-19 Timestamp: 2024-07-01T19:12:57.715Z Learning: Unused imports in `deepgram/clients/speak/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#424 File: deepgram/client.py:81-81 Timestamp: 2024-06-27T00:06:01.811Z Learning: Imports for SpeakStreamClient and AsyncSpeakStreamClient in `deepgram/client.py` are necessary for export purposes and should not be flagged as unused in reviews.deepgram/client.py (7)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:37-38 Timestamp: 2024-07-01T19:13:29.909Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:54-55 Timestamp: 2024-07-01T19:13:11.612Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:42-50 Timestamp: 2024-07-01T19:13:28.504Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:19-24 Timestamp: 2024-07-01T19:14:20.539Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:10-13 Timestamp: 2024-07-01T19:14:11.334Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.deepgram/clients/speak/v1/websocket/client.py (2)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/v1/websocket/__init__.py:11-11 Timestamp: 2024-07-01T19:14:53.172Z Learning: User dvonthenen prefers to retain unused imports in the codebase to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/v1/websocket/__init__.py:14-14 Timestamp: 2024-07-01T19:14:41.918Z Learning: User dvonthenen prefers to retain unused imports in the codebase to maintain backward compatibility.
Ruff
deepgram/clients/listen/v1/websocket/__init__.py
7-7:
.options.LiveOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
7-7:
.options.ListenWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/listen/v1/rest/__init__.py
8-8:
.options.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/speak/v1/__init__.py
6-6:
.options.SpeakOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
7-7:
.options.SpeakRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
8-8:
.options.SpeakWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
9-9:
.options.FileSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
10-10:
.options.SpeakWebSocketSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
11-11:
.options.SpeakSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/speak/__init__.py
17-17:
.client.SpeakRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
18-18:
.client.SpeakWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/listen/__init__.py
19-19:
.client.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
38-38:
.client.ListenWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
56-56:
.client.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
57-57:
.client.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/listen/v1/__init__.py
19-19:
.rest.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
19-19:
.rest.PrerecordedOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
34-34:
.websocket.LiveOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
34-34:
.websocket.ListenWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/__init__.py
40-40:
.listen.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
40-40:
.listen.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
44-44:
.listen.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
65-65:
.listen.ListenWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
105-105:
.speak.SpeakOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
106-106:
.speak.SpeakRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
107-107:
.speak.SpeakWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
109-109:
.speak.SpeakWebSocketSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
110-110:
.speak.SpeakSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
113-113:
.speak.SpeakWebSocketEventsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/__init__.py
50-50:
.client.LiveClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
50-50:
.client.AsyncLiveClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
51-51:
.client.ListenWebSocketClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
51-51:
.client.AsyncListenWebSocketClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
52-52:
.client.LiveTranscriptionEventsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
53-53:
.client.LiveOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
53-53:
.client.ListenWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
66-66:
.client.PreRecordedClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
66-66:
.client.AsyncPreRecordedClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
67-67:
.client.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
67-67:
.client.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
69-69:
.client.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
97-97:
.client.SpeakRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
98-98:
.client.SpeakWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/client.py
36-36:
.clients.LiveClientimported but unusedRemove unused import
(F401)
36-36:
.clients.AsyncLiveClientimported but unusedRemove unused import
(F401)
38-38:
.clients.ListenRESTClientimported but unusedRemove unused import
(F401)
39-39:
.clients.AsyncListenRESTClientimported but unusedRemove unused import
(F401)
40-40:
.clients.ListenWebSocketClientimported but unusedRemove unused import
(F401)
41-41:
.clients.AsyncListenWebSocketClientimported but unusedRemove unused import
(F401)
44-44:
.clients.ListenWebSocketOptionsimported but unusedRemove unused import
(F401)
67-67:
.clients.ListenRESTOptionsimported but unusedRemove unused import
(F401)
99-99:
.clients.SpeakRESTOptionsimported but unusedRemove unused import
(F401)
100-100:
.clients.SpeakWebSocketOptionsimported but unusedRemove unused import
(F401)
Additional comments not posted (38)
deepgram/clients/listen/v1/websocket/__init__.py (1)
7-7: Approved: Imports for backward compatibility.The imports for
LiveOptionsandListenWebSocketOptionsare retained to maintain backward compatibility.Tools
Ruff
7-7:
.options.LiveOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
7-7:
.options.ListenWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/listen/v1/rest/__init__.py (1)
8-8: Approved: Imports for backward compatibility.The imports for
ListenRESTOptionsandPrerecordedOptionsare retained to maintain backward compatibility.Tools
Ruff
8-8:
.options.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/speak/v1/__init__.py (1)
6-12: Approved: Imports for backward compatibility.The imports for
SpeakOptions,SpeakRESTOptions,SpeakWebSocketOptions,FileSource,SpeakWebSocketSource, andSpeakSourceare retained to maintain backward compatibility.Tools
Ruff
6-6:
.options.SpeakOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
7-7:
.options.SpeakRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
8-8:
.options.SpeakWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
9-9:
.options.FileSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
10-10:
.options.SpeakWebSocketSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
11-11:
.options.SpeakSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/speak/__init__.py (1)
17-18: Approved: Imports for backward compatibility.The imports for
SpeakRESTOptionsandSpeakWebSocketOptionsare retained to maintain backward compatibility.Tools
Ruff
17-17:
.client.SpeakRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
18-18:
.client.SpeakWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/listen/__init__.py (3)
19-19: Retain unused imports for backward compatibility.The import of
ListenRESTOptionsis flagged as unused by static analysis tools. However, it should be retained for backward compatibility.Tools
Ruff
19-19:
.client.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
38-38: Retain unused imports for backward compatibility.The imports of
ListenWebSocketOptionsandLiveOptionsare flagged as unused by static analysis tools. However, they should be retained for backward compatibility.Tools
Ruff
38-38:
.client.ListenWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
56-57: Retain unused imports for backward compatibility.The imports of
ListenRESTClientandAsyncListenRESTClientare flagged as unused by static analysis tools. However, they should be retained for backward compatibility.Tools
Ruff
56-56:
.client.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
57-57:
.client.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/listen/v1/__init__.py (2)
19-19: Retain unused imports for backward compatibility.The imports of
ListenRESTOptionsandPrerecordedOptionsare flagged as unused by static analysis tools. However, they should be retained for backward compatibility.Tools
Ruff
19-19:
.rest.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
19-19:
.rest.PrerecordedOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
34-34: Retain unused imports for backward compatibility.The imports of
LiveOptionsandListenWebSocketOptionsare flagged as unused by static analysis tools. However, they should be retained for backward compatibility.Tools
Ruff
34-34:
.websocket.LiveOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
34-34:
.websocket.ListenWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/speak/client.py (2)
13-13: Retain unused imports for backward compatibility.The import of
SpeakRESTOptionsis flagged as unused by static analysis tools. However, it should be retained for backward compatibility.
14-14: Retain unused imports for backward compatibility.The import of
SpeakWebSocketOptionsis flagged as unused by static analysis tools. However, it should be retained for backward compatibility.deepgram/clients/__init__.py (4)
40-40: Retain unused imports for backward compatibility.The imports of
ListenRESTClientandAsyncListenRESTClientare flagged as unused by static analysis tools. However, they should be retained for backward compatibility.Tools
Ruff
40-40:
.listen.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
40-40:
.listen.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
44-44: Retain unused imports for backward compatibility.The imports of
ListenRESTOptionsandPrerecordedOptionsare flagged as unused by static analysis tools. However, they should be retained for backward compatibility.Tools
Ruff
44-44:
.listen.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
61-61: Retain unused imports for backward compatibility.The imports of
ListenWebSocketClientandAsyncListenWebSocketClientare flagged as unused by static analysis tools. However, they should be retained for backward compatibility.
106-106: Retain unused imports for backward compatibility.The import of
SpeakRESTOptionsis flagged as unused by static analysis tools. However, it should be retained for backward compatibility.Tools
Ruff
106-106:
.speak.SpeakRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/__init__.py (5)
50-51: Retain unused imports for backward compatibility.The imports for
LiveClient,AsyncLiveClient,ListenWebSocketClient, andAsyncListenWebSocketClientare retained for backward compatibility.Tools
Ruff
50-50:
.client.LiveClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
50-50:
.client.AsyncLiveClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
51-51:
.client.ListenWebSocketClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
51-51:
.client.AsyncListenWebSocketClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
53-53: Retain unused imports for backward compatibility.The imports for
LiveOptionsandListenWebSocketOptionsare retained for backward compatibility.Tools
Ruff
53-53:
.client.LiveOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
53-53:
.client.ListenWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
66-67: Retain unused imports for backward compatibility.The imports for
PreRecordedClient,AsyncPreRecordedClient,ListenRESTClient, andAsyncListenRESTClientare retained for backward compatibility.Tools
Ruff
66-66:
.client.PreRecordedClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
66-66:
.client.AsyncPreRecordedClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
67-67:
.client.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
67-67:
.client.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
69-69: Retain unused imports for backward compatibility.The imports for
ListenRESTOptionsandPrerecordedOptionsare retained for backward compatibility.Tools
Ruff
69-69:
.client.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
97-98: Retain unused imports for backward compatibility.The imports for
SpeakRESTOptionsandSpeakWebSocketOptionsare retained for backward compatibility.Tools
Ruff
97-97:
.client.SpeakRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
98-98:
.client.SpeakWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/speak/v1/rest/client.py (5)
17-17: Ensure correct usage ofSpeakRESTOptions.The import statement for
SpeakRESTOptionsis correct. Verify that all functions using this option handle it appropriately.Verification successful
Verified: Correct usage of
SpeakRESTOptions.The import statement for
SpeakRESTOptionsis correct, and all instances in the codebase handle it appropriately by validating and converting it to a dictionary when necessary.
deepgram/clients/speak/v1/rest/client.pydeepgram/clients/speak/v1/rest/async_client.pyScripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify functions that use `SpeakRESTOptions` handle it correctly. # Test: Search for functions using `SpeakRESTOptions`. Expect: Correct handling of `SpeakRESTOptions`. rg --type python -A 5 $'SpeakRESTOptions'Length of output: 71
Script:
#!/bin/bash # Description: Verify functions that use `SpeakRESTOptions` handle it correctly. # Test: Search for functions using `SpeakRESTOptions`. Expect: Correct handling of `SpeakRESTOptions`. rg -t py -A 5 'SpeakRESTOptions'Length of output: 11382
73-81: Ensure correct handling ofSpeakRESTOptionsvalidation.The validation of
SpeakRESTOptionsusing thecheckmethod is correct. Ensure all necessary validations are in place.Verification successful
Validation for
SpeakRESTOptionsis correctly implemented.The
checkmethod forSpeakRESTOptionsis being used for validation indeepgram/clients/speak/v1/rest/client.py, ensuring that the necessary validations are in place.
deepgram/clients/speak/v1/rest/client.py: Validation logic usingoptions.check.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the validation of `SpeakRESTOptions` using the `check` method. # Test: Search for the `check` method usage. Expect: Correct validation of `SpeakRESTOptions`. rg --type python -A 5 'options.check'Length of output: 68
Script:
#!/bin/bash # Description: Verify the validation of `SpeakRESTOptions` using the `check` method. # Test: Search for the `check` method usage. Expect: Correct validation of `SpeakRESTOptions`. rg --glob '*.py' -A 5 'options.check'Length of output: 14752
Line range hint
147-158:
Ensure correct usage ofSpeakRESTOptionsinsavemethod.The
savemethod usesSpeakRESTOptions. Ensure the method handles the options correctly.Verification successful
Verified: The
savemethod handlesSpeakRESTOptionscorrectly.The
savemethod passes theoptionsparameter to thestreammethod, which validates and convertsSpeakRESTOptionsas needed, ensuring proper handling.
deepgram/clients/speak/v1/rest/client.py
savemethodstreammethodScripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the `save` method handles `SpeakRESTOptions` correctly. # Test: Search for the `save` method. Expect: Correct handling of `SpeakRESTOptions`. rg --type python -A 20 'def save'Length of output: 66
Script:
#!/bin/bash # Description: Verify the `save` method handles `SpeakRESTOptions` correctly. # Search for the `save` method within the specified file. ast-grep --lang python --pattern $'def save($_, $_, $_, $_, $_, $_):\n $$$' deepgram/clients/speak/v1/rest/client.pyLength of output: 119
Script:
#!/bin/bash # Description: Verify the `save` method handles `SpeakRESTOptions` correctly. # Search for the `save` method within the specified file and provide more context lines. rg 'def save' -A 50 deepgram/clients/speak/v1/rest/client.pyLength of output: 1827
Script:
#!/bin/bash # Description: Verify the `stream` method handles `SpeakRESTOptions` correctly. # Search for the `stream` method within the specified file and provide more context lines. rg 'def stream' -A 50 deepgram/clients/speak/v1/rest/client.pyLength of output: 2163
126-126: Ensure correct usage ofSpeakRESTOptionsinfilemethod.The
filemethod usesSpeakRESTOptions. Ensure the method handles the options correctly.Verification successful
The
filemethod correctly handlesSpeakRESTOptionsby passing it to thesavemethod, which ensures proper processing through thestreammethod.
- The
streammethod checks the validity ofSpeakRESTOptionsand converts it to a dictionary for further processing.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the `file` method handles `SpeakRESTOptions` correctly. # Test: Search for the `file` method. Expect: Correct handling of `SpeakRESTOptions`. rg --type python -A 20 'def file'Length of output: 66
Script:
#!/bin/bash # Description: Verify the `file` method handles `SpeakRESTOptions` correctly. # Search for the `file` method in the specified file. rg 'def file' deepgram/clients/speak/v1/rest/client.py -A 20Length of output: 636
Script:
#!/bin/bash # Description: Verify the `save` method handles `SpeakRESTOptions` correctly. # Search for the `save` method in the specified file. rg 'def save' deepgram/clients/speak/v1/rest/client.py -A 20Length of output: 967
Script:
#!/bin/bash # Description: Inspect the implementation of the `save` method to verify the handling of `SpeakRESTOptions`. # Search for the full implementation of the `save` method. rg 'def save' deepgram/clients/speak/v1/rest/client.py -A 50Length of output: 1827
Script:
#!/bin/bash # Description: Inspect the implementation of the `stream` method to verify the handling of `SpeakRESTOptions`. # Search for the implementation of the `stream` method. rg 'def stream' deepgram/clients/speak/v1/rest/client.py -A 50Length of output: 2163
Line range hint
40-51:
Ensure correct handling ofSpeakRESTOptionsinstreammethod.The
streammethod usesSpeakRESTOptions. Ensure the method handles the options correctly, including validation and conversion to a dictionary.deepgram/clients/speak/v1/rest/async_client.py (5)
18-18: Ensure correct usage ofSpeakRESTOptions.The import statement for
SpeakRESTOptionsis correct. Verify that all functions using this option handle it appropriately.Verification successful
Usage of
SpeakRESTOptionsis correctly handled.The functions using
SpeakRESTOptionsindeepgram/clients/speak/v1/rest/async_client.pyhandle it appropriately by including type hints, validating it with thecheckmethod, and converting it to a dictionary when necessary.
deepgram/clients/speak/v1/rest/async_client.py: Multiple instances verified.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify functions that use `SpeakRESTOptions` handle it correctly. # Test: Search for functions using `SpeakRESTOptions`. Expect: Correct handling of `SpeakRESTOptions`. rg --type python -A 5 $'SpeakRESTOptions'Length of output: 71
Script:
#!/bin/bash # Description: Verify functions that use `SpeakRESTOptions` handle it correctly. # Test: Search for functions using `SpeakRESTOptions`. Expect: Correct handling of `SpeakRESTOptions`. rg 'SpeakRESTOptions' -A 5Length of output: 11376
74-82: Ensure correct handling ofSpeakRESTOptionsvalidation.The validation of
SpeakRESTOptionsusing thecheckmethod is correct. Ensure all necessary validations are in place.Verification successful
Validation of
SpeakRESTOptionsis correctly implemented.The
checkmethod is consistently used for validatingSpeakRESTOptionsacross the codebase, including indeepgram/clients/speak/v1/rest/async_client.py. This ensures the necessary validations are in place.
deepgram/clients/speak/v1/rest/async_client.pyScripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the validation of `SpeakRESTOptions` using the `check` method. # Test: Search for the `check` method usage. Expect: Correct validation of `SpeakRESTOptions`. rg --type python -A 5 'options.check'Length of output: 68
Script:
#!/bin/bash # Description: Verify the validation of `SpeakRESTOptions` using the `check` method. # Test: Search for the `check` method usage. Expect: Correct validation of `SpeakRESTOptions`. rg -t py -A 5 'options.check'Length of output: 14744
Line range hint
41-52:
Ensure correct handling ofSpeakRESTOptionsinstreammethod.The
streammethod usesSpeakRESTOptions. Ensure the method handles the options correctly, including validation and conversion to a dictionary.Verification successful
Verified: The
streammethod correctly handlesSpeakRESTOptions, including validation and conversion to a dictionary.
deepgram/clients/speak/v1/rest/async_client.pydeepgram/clients/speak/v1/rest/client.pyScripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the `stream` method handles `SpeakRESTOptions` correctly. # Test: Search for the `stream` method. Expect: Correct handling of `SpeakRESTOptions`. rg --type python -A 20 'def stream'Length of output: 68
Script:
#!/bin/bash # Description: Verify the `stream` method handles `SpeakRESTOptions` correctly. # Test: Search for the `stream` method. Expect: Correct handling of `SpeakRESTOptions`. rg 'def stream' -A 20Length of output: 3684
Script:
#!/bin/bash # Description: Capture the complete implementation of the `stream` method in the specified files. # Test: Search for the full `stream` method implementations. rg 'def stream' -A 50 deepgram/clients/speak/v1/rest/async_client.py rg 'def stream' -A 50 deepgram/clients/speak/v1/rest/client.pyLength of output: 4354
126-126: Ensure correct usage ofSpeakRESTOptionsinfilemethod.The
filemethod usesSpeakRESTOptions. Ensure the method handles the options correctly.Verification successful
Verified: Correct handling of
SpeakRESTOptionsin thefilemethod.The
filemethod, through its use of thesavemethod, correctly handlesSpeakRESTOptionsby ensuring their validity and converting them to a dictionary for further processing.
deepgram/clients/speak/v1/rest/async_client.py:file,save, andstreammethods.deepgram/clients/speak/v1/rest/client.py:file,save, andstreammethods.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the `file` method handles `SpeakRESTOptions` correctly. # Test: Search for the `file` method. Expect: Correct handling of `SpeakRESTOptions`. rg --type python -A 20 'def file'Length of output: 66
Script:
#!/bin/bash # Description: Verify the `file` method handles `SpeakRESTOptions` correctly. # Test: Search for the `file` method. Expect: Correct handling of `SpeakRESTOptions`. rg --type py -A 20 'def file'Length of output: 3036
Script:
#!/bin/bash # Description: Verify the `save` method handles `SpeakRESTOptions` correctly, as used by the `file` method. # Test: Search for the `save` method implementation. Expect: Correct handling of `SpeakRESTOptions`. rg --type py -A 20 'def save'Length of output: 3698
Script:
#!/bin/bash # Description: Verify the `save` method handles `SpeakRESTOptions` correctly by examining its full implementation. # Test: Search for the full implementation of the `save` method. rg --type py -A 50 'def save'Length of output: 8097
Script:
#!/bin/bash # Description: Verify the `stream` method handles `SpeakRESTOptions` correctly by examining its full implementation. # Test: Search for the full implementation of the `stream` method. rg --type py -A 50 'def stream'Length of output: 8743
Line range hint
147-158:
Ensure correct usage ofSpeakRESTOptionsinsavemethod.The
savemethod usesSpeakRESTOptions. Ensure the method handles the options correctly.Verification successful
SpeakRESTOptions is handled correctly in the
savemethod.The
savemethod correctly processes theSpeakRESTOptionsparameter by validating it with thecheck()method and converting it to a dictionary using theto_dict()method. This ensures proper handling of theSpeakRESTOptions.
deepgram/clients/speak/v1/rest/client.pydeepgram/clients/speak/v1/rest/async_client.pyScripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the `save` method handles `SpeakRESTOptions` correctly. # Test: Search for the `save` method. Expect: Correct handling of `SpeakRESTOptions`. rg --type python -A 20 'def save'Length of output: 66
Script:
#!/bin/bash # Description: Verify the `save` method handles `SpeakRESTOptions` correctly. # Test: Search for the `save` method. Expect: Correct handling of `SpeakRESTOptions`. rg --glob '*.py' -A 20 'def save'Length of output: 3702
Script:
#!/bin/bash # Description: Extract the complete implementation of the `save` method in both client.py and async_client.py to verify correct handling of `SpeakRESTOptions`. # Extract the `save` method from client.py rg --glob '*.py' -A 50 'def save' deepgram/clients/speak/v1/rest/client.py # Extract the `save` method from async_client.py rg --glob '*.py' -A 50 'def save' deepgram/clients/speak/v1/rest/async_client.pyLength of output: 3734
Script:
#!/bin/bash # Description: Extract the complete implementation of the `stream` method in both client.py and async_client.py to verify correct handling of `SpeakRESTOptions`. # Extract the `stream` method from client.py rg --glob '*.py' -A 50 'def stream' deepgram/clients/speak/v1/rest/client.py # Extract the `stream` method from async_client.py rg --glob '*.py' -A 50 'def stream' deepgram/clients/speak/v1/rest/async_client.pyLength of output: 4382
deepgram/client.py (4)
36-42: Retain unused imports for backward compatibility.The imports for
LiveClient,AsyncLiveClient,ListenRESTClient,AsyncListenRESTClient,ListenWebSocketClient, andAsyncListenWebSocketClientare retained for backward compatibility.Tools
Ruff
36-36:
.clients.LiveClientimported but unusedRemove unused import
(F401)
36-36:
.clients.AsyncLiveClientimported but unusedRemove unused import
(F401)
38-38:
.clients.ListenRESTClientimported but unusedRemove unused import
(F401)
39-39:
.clients.AsyncListenRESTClientimported but unusedRemove unused import
(F401)
40-40:
.clients.ListenWebSocketClientimported but unusedRemove unused import
(F401)
41-41:
.clients.AsyncListenWebSocketClientimported but unusedRemove unused import
(F401)
44-44: Retain unused imports for backward compatibility.The imports for
ListenWebSocketOptions,LiveOptions, andLiveTranscriptionEventsare retained for backward compatibility.Tools
Ruff
44-44:
.clients.ListenWebSocketOptionsimported but unusedRemove unused import
(F401)
67-67: Retain unused imports for backward compatibility.The imports for
ListenRESTOptionsandPrerecordedOptionsare retained for backward compatibility.Tools
Ruff
67-67:
.clients.ListenRESTOptionsimported but unusedRemove unused import
(F401)
99-100: Retain unused imports for backward compatibility.The imports for
SpeakRESTOptionsandSpeakWebSocketOptionsare retained for backward compatibility.Tools
Ruff
99-99:
.clients.SpeakRESTOptionsimported but unusedRemove unused import
(F401)
100-100:
.clients.SpeakWebSocketOptionsimported but unusedRemove unused import
(F401)
deepgram/clients/speak/v1/websocket/client.py (4)
29-29: Import addition approved.The inclusion of
SpeakWebSocketOptionsis appropriate and aligns with the changes mentioned in the summary. Ensure that this import is used correctly in the class.
84-84: EnsureSpeakWebSocketOptionsis correctly handled.The
startmethod now includesSpeakWebSocketOptions. Ensure that the options are correctly validated and converted within the method.
100-100: Validation ofSpeakWebSocketOptionsis appropriate.The check for
SpeakWebSocketOptionsusingoptions.check()is valid and ensures the options are correctly set.
118-119: Conversion ofSpeakWebSocketOptionsto dictionary is correct.The conversion of
SpeakWebSocketOptionsto a dictionary usingoptions.to_dict()is correctly implemented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
Outside diff range, codebase verification and nitpick comments (11)
deepgram/clients/speak/v1/rest/async_client.py (3)
52-52: Improve parameter documentation.The
optionsparameter documentation should mention that it can accept a dictionary orSpeakRESTOptions.- options (SpeakRESTOptions): Additional options for the ingest (default is None). + options (Optional[Union[Dict, SpeakRESTOptions]]): Additional options for the ingest (default is None).
81-82: Improve logging message.The logging message "SpeakRESTOptions switching class -> dict" could be more informative.
- self._logger.info("SpeakRESTOptions switching class -> dict") + self._logger.info("Converting SpeakRESTOptions to dictionary")
158-158: Improve parameter documentation.The
optionsparameter documentation should mention that it can accept a dictionary orSpeakRESTOptions.- options (SpeakRESTOptions): Additional options for the ingest (default is None). + options (Optional[Union[Dict, SpeakRESTOptions]]): Additional options for the ingest (default is None).deepgram/clients/listen/v1/rest/client.py (4)
55-55: Improve parameter documentation.The
optionsparameter documentation should mention that it can accept a dictionary orListenRESTOptions.- options (ListenRESTOptions): Additional options for the transcription (default is None). + options (Optional[Union[Dict, ListenRESTOptions]]): Additional options for the transcription (default is None).
97-98: Improve logging message.The logging message "ListenRESTOptions switching class -> dict" could be more informative.
- self._logger.info("ListenRESTOptions switching class -> dict") + self._logger.info("Converting ListenRESTOptions to dictionary")
201-201: Improve parameter documentation.The
optionsparameter documentation should mention that it can accept a dictionary orListenRESTOptions.- options (ListenRESTOptions): Additional options for the transcription (default is None). + options (Optional[Union[Dict, ListenRESTOptions]]): Additional options for the transcription (default is None).
245-246: Improve logging message.The logging message "ListenRESTOptions switching class -> dict" could be more informative.
- self._logger.info("ListenRESTOptions switching class -> dict") + self._logger.info("Converting ListenRESTOptions to dictionary")deepgram/clients/listen/v1/rest/async_client.py (4)
55-55: Improve parameter documentation.The
optionsparameter documentation should mention that it can accept a dictionary orListenRESTOptions.- options (ListenRESTOptions): Additional options for the transcription (default is None). + options (Optional[Union[Dict, ListenRESTOptions]]): Additional options for the transcription (default is None).
97-98: Improve logging message.The logging message "ListenRESTOptions switching class -> dict" could be more informative.
- self._logger.info("ListenRESTOptions switching class -> dict") + self._logger.info("Converting ListenRESTOptions to dictionary")
201-201: Improve parameter documentation.The
optionsparameter documentation should mention that it can accept a dictionary orListenRESTOptions.- options (ListenRESTOptions): Additional options for the transcription (default is None). + options (Optional[Union[Dict, ListenRESTOptions]]): Additional options for the transcription (default is None).
245-246: Improve logging message.The logging message "ListenRESTOptions switching class -> dict" could be more informative.
- self._logger.info("ListenRESTOptions switching class -> dict") + self._logger.info("Converting ListenRESTOptions to dictionary")
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (29)
- deepgram/init.py (3 hunks)
- deepgram/client.py (3 hunks)
- deepgram/clients/init.py (4 hunks)
- deepgram/clients/listen/init.py (3 hunks)
- deepgram/clients/listen/client.py (5 hunks)
- deepgram/clients/listen/v1/init.py (2 hunks)
- deepgram/clients/listen/v1/rest/init.py (1 hunks)
- deepgram/clients/listen/v1/rest/async_client.py (17 hunks)
- deepgram/clients/listen/v1/rest/client.py (17 hunks)
- deepgram/clients/listen/v1/rest/options.py (1 hunks)
- deepgram/clients/listen/v1/websocket/init.py (1 hunks)
- deepgram/clients/listen/v1/websocket/async_client.py (4 hunks)
- deepgram/clients/listen/v1/websocket/client.py (4 hunks)
- deepgram/clients/listen/v1/websocket/options.py (1 hunks)
- deepgram/clients/speak/init.py (1 hunks)
- deepgram/clients/speak/client.py (2 hunks)
- deepgram/clients/speak/v1/init.py (1 hunks)
- deepgram/clients/speak/v1/options.py (1 hunks)
- deepgram/clients/speak/v1/rest/init.py (1 hunks)
- deepgram/clients/speak/v1/rest/async_client.py (7 hunks)
- deepgram/clients/speak/v1/rest/client.py (7 hunks)
- deepgram/clients/speak/v1/rest/helpers.py (1 hunks)
- deepgram/clients/speak/v1/rest/options.py (1 hunks)
- deepgram/clients/speak/v1/websocket/init.py (1 hunks)
- deepgram/clients/speak/v1/websocket/async_client.py (4 hunks)
- deepgram/clients/speak/v1/websocket/client.py (4 hunks)
- deepgram/clients/speak/v1/websocket/options.py (1 hunks)
- examples/text-to-speech/websocket/async_interactive/main.py (1 hunks)
- examples/text-to-speech/websocket/interactive/main.py (1 hunks)
Files skipped from review due to trivial changes (4)
- deepgram/clients/speak/v1/rest/helpers.py
- deepgram/clients/speak/v1/rest/options.py
- deepgram/clients/speak/v1/websocket/options.py
- examples/text-to-speech/websocket/interactive/main.py
Files skipped from review as they are similar to previous changes (7)
- deepgram/clients/listen/client.py
- deepgram/clients/listen/v1/rest/options.py
- deepgram/clients/listen/v1/websocket/options.py
- deepgram/clients/speak/client.py
- deepgram/clients/speak/v1/rest/client.py
- deepgram/clients/speak/v1/websocket/async_client.py
- deepgram/clients/speak/v1/websocket/client.py
Additional context used
Learnings (13)
deepgram/clients/speak/v1/websocket/__init__.py (4)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/v1/websocket/__init__.py:11-11 Timestamp: 2024-07-01T19:14:53.172Z Learning: User dvonthenen prefers to retain unused imports in the codebase to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/v1/websocket/__init__.py:14-14 Timestamp: 2024-07-01T19:14:41.918Z Learning: User dvonthenen prefers to retain unused imports in the codebase to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/v1/websocket/__init__.py:10-10 Timestamp: 2024-07-01T19:14:59.869Z Learning: User dvonthenen prefers to retain unused imports in the codebase to maintain backward compatibility, even if they are flagged as unused.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.deepgram/clients/listen/v1/websocket/__init__.py (2)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.deepgram/clients/listen/v1/rest/__init__.py (8)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/rest/options.py:12-12 Timestamp: 2024-07-01T19:12:36.972Z Learning: Unused imports in `deepgram/clients/listen/v1/rest/options.py` are retained to maintain backwards compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:37-38 Timestamp: 2024-07-01T19:13:29.909Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:54-55 Timestamp: 2024-07-01T19:13:11.612Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:19-24 Timestamp: 2024-07-01T19:14:20.539Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:42-50 Timestamp: 2024-07-01T19:13:28.504Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:10-13 Timestamp: 2024-07-01T19:14:11.334Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:6-6 Timestamp: 2024-07-01T18:18:02.415Z Learning: Imports for DeepgramClientOptions and ClientOptionsFromEnv in deepgram/clients/listen/__init__.py should not be flagged as unused in reviews.deepgram/clients/speak/__init__.py (1)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/__init__.py:16-19 Timestamp: 2024-07-01T19:12:57.715Z Learning: Unused imports in `deepgram/clients/speak/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.deepgram/clients/speak/v1/__init__.py (5)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/__init__.py:16-19 Timestamp: 2024-07-01T19:12:57.715Z Learning: Unused imports in `deepgram/clients/speak/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/v1/websocket/__init__.py:11-11 Timestamp: 2024-07-01T19:14:53.172Z Learning: User dvonthenen prefers to retain unused imports in the codebase to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/v1/websocket/__init__.py:14-14 Timestamp: 2024-07-01T19:14:41.918Z Learning: User dvonthenen prefers to retain unused imports in the codebase to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/v1/websocket/__init__.py:10-10 Timestamp: 2024-07-01T19:14:59.869Z Learning: User dvonthenen prefers to retain unused imports in the codebase to maintain backward compatibility, even if they are flagged as unused.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/rest/options.py:12-12 Timestamp: 2024-07-01T19:12:36.972Z Learning: Unused imports in `deepgram/clients/listen/v1/rest/options.py` are retained to maintain backwards compatibility.deepgram/clients/listen/__init__.py (9)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/rest/options.py:12-12 Timestamp: 2024-07-01T19:12:36.972Z Learning: Unused imports in `deepgram/clients/listen/v1/rest/options.py` are retained to maintain backwards compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:54-55 Timestamp: 2024-07-01T19:13:11.612Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:37-38 Timestamp: 2024-07-01T19:13:29.909Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:42-50 Timestamp: 2024-07-01T19:13:28.504Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:19-24 Timestamp: 2024-07-01T19:14:20.539Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:10-13 Timestamp: 2024-07-01T19:14:11.334Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:6-6 Timestamp: 2024-07-01T18:18:02.415Z Learning: Imports for DeepgramClientOptions and ClientOptionsFromEnv in deepgram/clients/listen/__init__.py should not be flagged as unused in reviews.deepgram/clients/listen/v1/__init__.py (8)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/rest/options.py:12-12 Timestamp: 2024-07-01T19:12:36.972Z Learning: Unused imports in `deepgram/clients/listen/v1/rest/options.py` are retained to maintain backwards compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:37-38 Timestamp: 2024-07-01T19:13:29.909Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:54-55 Timestamp: 2024-07-01T19:13:11.612Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:42-50 Timestamp: 2024-07-01T19:13:28.504Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:19-24 Timestamp: 2024-07-01T19:14:20.539Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:10-13 Timestamp: 2024-07-01T19:14:11.334Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.deepgram/clients/__init__.py (8)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:37-38 Timestamp: 2024-07-01T19:13:29.909Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:54-55 Timestamp: 2024-07-01T19:13:11.612Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:42-50 Timestamp: 2024-07-01T19:13:28.504Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:19-24 Timestamp: 2024-07-01T19:14:20.539Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:10-13 Timestamp: 2024-07-01T19:14:11.334Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/__init__.py:16-19 Timestamp: 2024-07-01T19:12:57.715Z Learning: Unused imports in `deepgram/clients/speak/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.deepgram/__init__.py (9)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:37-38 Timestamp: 2024-07-01T19:13:29.909Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:54-55 Timestamp: 2024-07-01T19:13:11.612Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:42-50 Timestamp: 2024-07-01T19:13:28.504Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:19-24 Timestamp: 2024-07-01T19:14:20.539Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:10-13 Timestamp: 2024-07-01T19:14:11.334Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/speak/__init__.py:16-19 Timestamp: 2024-07-01T19:12:57.715Z Learning: Unused imports in `deepgram/clients/speak/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#424 File: deepgram/client.py:81-81 Timestamp: 2024-06-27T00:06:01.811Z Learning: Imports for SpeakStreamClient and AsyncSpeakStreamClient in `deepgram/client.py` are necessary for export purposes and should not be flagged as unused in reviews.deepgram/client.py (7)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:37-38 Timestamp: 2024-07-01T19:13:29.909Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:54-55 Timestamp: 2024-07-01T19:13:11.612Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/__init__.py:36-43 Timestamp: 2024-07-01T19:17:04.194Z Learning: Unused imports in `deepgram/clients/listen/v1/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:42-50 Timestamp: 2024-07-01T19:13:28.504Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:19-24 Timestamp: 2024-07-01T19:14:20.539Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/__init__.py:10-13 Timestamp: 2024-07-01T19:14:11.334Z Learning: Unused imports in `deepgram/clients/listen/__init__.py` are retained for backward compatibility and should not be flagged for removal in reviews.deepgram/clients/listen/v1/rest/client.py (1)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/rest/options.py:12-12 Timestamp: 2024-07-01T19:12:36.972Z Learning: Unused imports in `deepgram/clients/listen/v1/rest/options.py` are retained to maintain backwards compatibility.deepgram/clients/listen/v1/websocket/client.py (1)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.deepgram/clients/listen/v1/websocket/async_client.py (1)
Learnt from: dvonthenen PR: deepgram/deepgram-python-sdk#426 File: deepgram/clients/listen/v1/websocket/__init__.py:8-8 Timestamp: 2024-07-01T19:21:39.778Z Learning: Unused imports in `deepgram/clients/listen/v1/websocket/__init__.py` are retained to maintain backward compatibility and should not be flagged for removal in reviews.
Ruff
deepgram/clients/speak/v1/rest/__init__.py
9-9:
.options.SpeakRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
10-10:
.options.SpeakSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
11-11:
.options.SpeakRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
12-12:
.options.FileSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/speak/v1/websocket/__init__.py
17-17:
.options.SpeakWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/listen/v1/websocket/__init__.py
7-7:
.options.LiveOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
7-7:
.options.ListenWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/listen/v1/rest/__init__.py
8-8:
.options.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
9-9:
.options.PrerecordedOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
10-10:
.options.FileSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
11-11:
.options.UrlSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
12-12:
.options.PreRecordedStreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
13-13:
.options.PrerecordedSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
14-14:
.options.ListenRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/speak/__init__.py
17-17:
.client.SpeakRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
18-18:
.client.SpeakWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
19-19:
.client.FileSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
20-20:
.client.SpeakRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/speak/v1/__init__.py
6-6:
.options.SpeakOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
9-9:
.rest.SpeakRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
10-10:
.rest.SpeakRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
11-11:
.rest.SpeakSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
12-12:
.rest.FileSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
15-15:
.websocket.SpeakWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/listen/__init__.py
19-19:
.client.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
20-20:
.client.PrerecordedOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
21-21:
.client.PreRecordedStreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
22-22:
.client.UrlSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
23-23:
.client.FileSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
24-24:
.client.PrerecordedSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
25-25:
.client.ListenRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
39-39:
.client.ListenWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
57-57:
.client.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
58-58:
.client.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/listen/v1/__init__.py
19-19:
.rest.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
19-19:
.rest.PrerecordedOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
21-21:
.rest.UrlSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
22-22:
.rest.FileSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
23-23:
.rest.PreRecordedStreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
24-24:
.rest.PrerecordedSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
25-25:
.rest.ListenRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
35-35:
.websocket.LiveOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
35-35:
.websocket.ListenWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/__init__.py
40-40:
.listen.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
40-40:
.listen.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
44-44:
.listen.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
45-45:
.listen.PrerecordedOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
46-46:
.listen.PreRecordedStreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
49-49:
.listen.PrerecordedSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
50-50:
.listen.ListenRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
66-66:
.listen.ListenWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
106-106:
.speak.SpeakOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
107-107:
.speak.SpeakRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
108-108:
.speak.SpeakWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
110-110:
.speak.SpeakRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
111-111:
.speak.SpeakSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
114-114:
.speak.SpeakWebSocketEventsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/__init__.py
50-50:
.client.LiveClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
50-50:
.client.AsyncLiveClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
51-51:
.client.ListenWebSocketClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
51-51:
.client.AsyncListenWebSocketClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
52-52:
.client.LiveTranscriptionEventsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
53-53:
.client.LiveOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
53-53:
.client.ListenWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
66-66:
.client.PreRecordedClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
66-66:
.client.AsyncPreRecordedClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
67-67:
.client.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
67-67:
.client.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
69-69:
.client.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
70-70:
.client.PrerecordedOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
71-71:
.client.PreRecordedStreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
72-72:
.client.PrerecordedSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
73-73:
.client.ListenRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
98-98:
.client.SpeakRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
99-99:
.client.SpeakWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
101-101:
.client.SpeakRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/client.py
36-36:
.clients.LiveClientimported but unusedRemove unused import
(F401)
36-36:
.clients.AsyncLiveClientimported but unusedRemove unused import
(F401)
38-38:
.clients.ListenRESTClientimported but unusedRemove unused import
(F401)
39-39:
.clients.AsyncListenRESTClientimported but unusedRemove unused import
(F401)
40-40:
.clients.ListenWebSocketClientimported but unusedRemove unused import
(F401)
41-41:
.clients.AsyncListenWebSocketClientimported but unusedRemove unused import
(F401)
44-44:
.clients.ListenWebSocketOptionsimported but unusedRemove unused import
(F401)
67-67:
.clients.ListenRESTOptionsimported but unusedRemove unused import
(F401)
68-68:
.clients.PrerecordedOptionsimported but unusedRemove unused import
(F401)
69-69:
.clients.PreRecordedStreamSourceimported but unusedRemove unused import
(F401)
70-70:
.clients.PrerecordedSourceimported but unusedRemove unused import
(F401)
71-71:
.clients.ListenRestSourceimported but unusedRemove unused import
(F401)
100-100:
.clients.SpeakRESTOptionsimported but unusedRemove unused import
(F401)
101-101:
.clients.SpeakWebSocketOptionsimported but unusedRemove unused import
(F401)
103-103:
.clients.SpeakRestSourceimported but unusedRemove unused import
(F401)
deepgram/clients/listen/v1/websocket/client.py
30-30:
.options.LiveOptionsimported but unusedRemove unused import:
.options.LiveOptions(F401)
deepgram/clients/listen/v1/websocket/async_client.py
30-30:
.options.LiveOptionsimported but unusedRemove unused import:
.options.LiveOptions(F401)
Additional comments not posted (63)
deepgram/clients/speak/v1/rest/__init__.py (1)
8-13: LGTM!The imports are consistent with the user's preference to retain them for backward compatibility.
Tools
Ruff
9-9:
.options.SpeakRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
10-10:
.options.SpeakSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
11-11:
.options.SpeakRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
12-12:
.options.FileSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/speak/v1/websocket/__init__.py (1)
17-17: LGTM!The imports are consistent with the user's preference to retain them for backward compatibility.
Tools
Ruff
17-17:
.options.SpeakWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/listen/v1/websocket/__init__.py (1)
7-7: LGTM!The imports are consistent with the user's preference to retain them for backward compatibility.
Tools
Ruff
7-7:
.options.LiveOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
7-7:
.options.ListenWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/listen/v1/rest/__init__.py (1)
8-14: LGTM!The imports are consistent with the user's preference to retain them for backward compatibility.
Tools
Ruff
8-8:
.options.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
9-9:
.options.PrerecordedOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
10-10:
.options.FileSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
11-11:
.options.UrlSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
12-12:
.options.PreRecordedStreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
13-13:
.options.PrerecordedSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
14-14:
.options.ListenRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/speak/__init__.py (3)
17-17: Retain unused import for backward compatibility.The import of
SpeakRESTOptionsis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
17-17:
.client.SpeakRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
18-18: Retain unused import for backward compatibility.The import of
SpeakWebSocketOptionsis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
18-18:
.client.SpeakWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
20-20: Retain unused import for backward compatibility.The import of
SpeakRestSourceis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
20-20:
.client.SpeakRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/speak/v1/__init__.py (6)
6-6: Retain unused import for backward compatibility.The import of
SpeakOptionsis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
6-6:
.options.SpeakOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
9-9: Retain unused import for backward compatibility.The import of
SpeakRESTOptionsis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
9-9:
.rest.SpeakRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
10-10: Retain unused import for backward compatibility.The import of
SpeakRestSourceis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
10-10:
.rest.SpeakRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
11-11: Retain unused import for backward compatibility.The import of
SpeakSourceis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
11-11:
.rest.SpeakSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
12-12: Retain unused import for backward compatibility.The import of
FileSourceis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
12-12:
.rest.FileSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
15-15: Retain unused import for backward compatibility.The import of
SpeakWebSocketOptionsis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
15-15:
.websocket.SpeakWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/listen/__init__.py (10)
19-19: Retain unused import for backward compatibility.The import of
ListenRESTOptionsis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
19-19:
.client.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
20-20: Retain unused import for backward compatibility.The import of
PrerecordedOptionsis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
20-20:
.client.PrerecordedOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
21-21: Retain unused import for backward compatibility.The import of
PreRecordedStreamSourceis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
21-21:
.client.PreRecordedStreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
22-22: Retain unused import for backward compatibility.The import of
UrlSourceis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
22-22:
.client.UrlSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
23-23: Retain unused import for backward compatibility.The import of
FileSourceis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
23-23:
.client.FileSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
24-24: Retain unused import for backward compatibility.The import of
PrerecordedSourceis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
24-24:
.client.PrerecordedSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
25-25: Retain unused import for backward compatibility.The import of
ListenRestSourceis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
25-25:
.client.ListenRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
39-39: Retain unused import for backward compatibility.The import of
ListenWebSocketOptionsis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
39-39:
.client.ListenWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
57-57: Retain unused import for backward compatibility.The import of
ListenRESTClientis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
57-57:
.client.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
58-58: Retain unused import for backward compatibility.The import of
AsyncListenRESTClientis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
58-58:
.client.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/listen/v1/__init__.py (7)
19-19: Retain unused import for backward compatibility.The import of
ListenRESTOptionsis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
19-19:
.rest.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
19-19:
.rest.PrerecordedOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
19-19: Retain unused import for backward compatibility.The import of
PrerecordedOptionsis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
19-19:
.rest.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
19-19:
.rest.PrerecordedOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
21-21: Retain unused import for backward compatibility.The import of
UrlSourceis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
21-21:
.rest.UrlSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
22-22: Retain unused import for backward compatibility.The import of
FileSourceis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
22-22:
.rest.FileSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
23-23: Retain unused import for backward compatibility.The import of
PreRecordedStreamSourceis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
23-23:
.rest.PreRecordedStreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
24-24: Retain unused import for backward compatibility.The import of
PrerecordedSourceis retained to ensure backward compatibility, as per previous learnings.Tools
Ruff
24-24:
.rest.PrerecordedSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
25-25: Retain unused import for backward compatibility.The import of
ListenRestSourceis retainedTools
Ruff
25-25:
.rest.ListenRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/speak/v1/options.py (3)
68-68: AliasSpeakOptionstoSpeakRESTOptions.This aliasing is appropriate and aligns with the new naming conventions.
70-70: DefineSpeakSourcetype.The union type
SpeakSourceis appropriately defined.
71-71: AliasSpeakSourcetoSpeakRestSource.This aliasing is appropriate and aligns with the new naming conventions.
deepgram/clients/__init__.py (6)
40-40: ImportListenRESTClientandAsyncListenRESTClient.These imports align with the new naming conventions and the reorganization of the codebase.
Tools
Ruff
40-40:
.listen.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
40-40:
.listen.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
44-50: Import various options and sources forListenRESTClient.These imports align with the new naming conventions and the reorganization of the codebase.
Tools
Ruff
44-44:
.listen.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
45-45:
.listen.PrerecordedOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
46-46:
.listen.PreRecordedStreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
49-49:
.listen.PrerecordedSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
50-50:
.listen.ListenRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
62-62: ImportListenWebSocketClientandAsyncListenWebSocketClient.These imports align with the new naming conventions and the reorganization of the codebase.
66-66: ImportListenWebSocketOptionsandLiveOptions.These imports align with the new naming conventions and the reorganization of the codebase.
Tools
Ruff
66-66:
.listen.ListenWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
107-110: Import various options and sources forSpeakRESTClient.These imports align with the new naming conventions and the reorganization of the codebase.
Tools
Ruff
107-107:
.speak.SpeakRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
108-108:
.speak.SpeakWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
110-110:
.speak.SpeakRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
128-128: ImportSpeakWebSocketClientandAsyncSpeakWebSocketClient.These imports align with the new naming conventions and the reorganization of the codebase.
examples/text-to-speech/websocket/async_interactive/main.py (1)
21-21: ModifyDeepgramClientOptionsinstantiation.The removal of the URL parameter is appropriate and simplifies the configuration.
deepgram/__init__.py (4)
51-51: ImportListenWebSocketClientandAsyncListenWebSocketClient.These imports align with the new naming conventions and the reorganization of the codebase.
Tools
Ruff
51-51:
.client.ListenWebSocketClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
51-51:
.client.AsyncListenWebSocketClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
53-53: ImportLiveOptionsandListenWebSocketOptions.These imports align with the new naming conventions and the reorganization of the codebase.
Tools
Ruff
53-53:
.client.LiveOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
53-53:
.client.ListenWebSocketOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
67-67: ImportListenRESTClientandAsyncListenRESTClient.These imports align with the new naming conventions and the reorganization of the codebase.
Tools
Ruff
67-67:
.client.ListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
67-67:
.client.AsyncListenRESTClientimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
69-73: Import various options and sources forListenRESTClient.These imports align with the new naming conventions and the reorganization of the codebase.
Tools
Ruff
69-69:
.client.ListenRESTOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
70-70:
.client.PrerecordedOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
71-71:
.client.PreRecordedStreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
72-72:
.client.PrerecordedSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
73-73:
.client.ListenRestSourceimported but unused; consider removing, adding to__all__, or using a redundant alias(F401)
deepgram/clients/speak/v1/rest/async_client.py (3)
41-41: Verify the correct handling ofSpeakRESTOptions.Ensure that the
SpeakRESTOptionsparameter is handled correctly, particularly thecheckmethod.
126-126: Verify the correct handling ofSpeakRESTOptions.Ensure that the
SpeakRESTOptionsparameter is handled correctly.
147-147: Verify the correct handling ofSpeakRESTOptions.Ensure that the
SpeakRESTOptionsparameter is handled correctly, particularly thecheckmethod.deepgram/client.py (6)
36-42: Retain unused imports for backward compatibility.Although static analysis hints indicate some unused imports, retain them to maintain backward compatibility.
Tools
Ruff
36-36:
.clients.LiveClientimported but unusedRemove unused import
(F401)
36-36:
.clients.AsyncLiveClientimported but unusedRemove unused import
(F401)
38-38:
.clients.ListenRESTClientimported but unusedRemove unused import
(F401)
39-39:
.clients.AsyncListenRESTClientimported but unusedRemove unused import
(F401)
40-40:
.clients.ListenWebSocketClientimported but unusedRemove unused import
(F401)
41-41:
.clients.AsyncListenWebSocketClientimported but unusedRemove unused import
(F401)
67-71: Retain unused imports for backward compatibility.Although static analysis hints indicate some unused imports, retain them to maintain backward compatibility.
Tools
Ruff
67-67:
.clients.ListenRESTOptionsimported but unusedRemove unused import
(F401)
68-68:
.clients.PrerecordedOptionsimported but unusedRemove unused import
(F401)
69-69:
.clients.PreRecordedStreamSourceimported but unusedRemove unused import
(F401)
70-70:
.clients.PrerecordedSourceimported but unusedRemove unused import
(F401)
71-71:
.clients.ListenRestSourceimported but unusedRemove unused import
(F401)
100-103: Retain unused imports for backward compatibility.Although static analysis hints indicate some unused imports, retain them to maintain backward compatibility.
Tools
Ruff
100-100:
.clients.SpeakRESTOptionsimported but unusedRemove unused import
(F401)
101-101:
.clients.SpeakWebSocketOptionsimported but unusedRemove unused import
(F401)
103-103:
.clients.SpeakRestSourceimported but unusedRemove unused import
(F401)
36-42: Verify the correct handling of new clients and options.Ensure that the methods correctly handle the new
ListenandSpeakrelated clients and options.Tools
Ruff
36-36:
.clients.LiveClientimported but unusedRemove unused import
(F401)
36-36:
.clients.AsyncLiveClientimported but unusedRemove unused import
(F401)
38-38:
.clients.ListenRESTClientimported but unusedRemove unused import
(F401)
39-39:
.clients.AsyncListenRESTClientimported but unusedRemove unused import
(F401)
40-40:
.clients.ListenWebSocketClientimported but unusedRemove unused import
(F401)
41-41:
.clients.AsyncListenWebSocketClientimported but unusedRemove unused import
(F401)
67-71: Verify the correct handling of new clients and options.Ensure that the methods correctly handle the new
ListenandSpeakrelated clients and options.Tools
Ruff
67-67:
.clients.ListenRESTOptionsimported but unusedRemove unused import
(F401)
68-68:
.clients.PrerecordedOptionsimported but unusedRemove unused import
(F401)
69-69:
.clients.PreRecordedStreamSourceimported but unusedRemove unused import
(F401)
70-70:
.clients.PrerecordedSourceimported but unusedRemove unused import
(F401)
71-71:
.clients.ListenRestSourceimported but unusedRemove unused import
(F401)
100-103: Verify the correct handling of new clients and options.Ensure that the methods correctly handle the new
ListenandSpeakrelated clients and options.Tools
Ruff
100-100:
.clients.SpeakRESTOptionsimported but unusedRemove unused import
(F401)
101-101:
.clients.SpeakWebSocketOptionsimported but unusedRemove unused import
(F401)
103-103:
.clients.SpeakRestSourceimported but unusedRemove unused import
(F401)
deepgram/clients/listen/v1/rest/client.py (4)
44-44: Verify the correct handling ofListenRESTOptions.Ensure that the
ListenRESTOptionsparameter is handled correctly, particularly thecheckmethod.
122-122: Verify the correct handling ofListenRESTOptions.Ensure that the
ListenRESTOptionsparameter is handled correctly.
190-190: Verify the correct handling ofListenRESTOptions.Ensure that the
ListenRESTOptionsparameter is handled correctly, particularly thecheckmethod.
270-270: Verify the correct handling ofListenRESTOptions.Ensure that the
ListenRESTOptionsparameter is handled correctly.deepgram/clients/listen/v1/rest/async_client.py (4)
44-44: Verify the correct handling ofListenRESTOptions.Ensure that the
ListenRESTOptionsparameter is handled correctly, particularly thecheckmethod.
122-122: Verify the correct handling ofListenRESTOptions.Ensure that the
ListenRESTOptionsparameter is handled correctly.
190-190: Verify the correct handling ofListenRESTOptions.Ensure that the
ListenRESTOptionsparameter is handled correctly, particularly thecheckmethod.
269-269: Verify the correct handling ofListenRESTOptions.Ensure that the
ListenRESTOptionsparameter is handled correctly.deepgram/clients/listen/v1/websocket/client.py (1)
102-102: LGTM!The addition of
ListenWebSocketOptionsand its validation logic are correct.Also applies to: 118-118, 136-137
deepgram/clients/listen/v1/websocket/async_client.py (1)
95-95: LGTM!The addition of
ListenWebSocketOptionsand its validation logic are correct.Also applies to: 111-111, 129-130
Proposed changes
Found a bug with missing export names for classes.
Types of changes
What types of changes does your code introduce to the community Python SDK?
Put an
xin the boxes that applyChecklist
Put an
xin the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Further comments
NA
Summary by CodeRabbit
New Features
Refactor
Chores