- Notifications
You must be signed in to change notification settings - Fork800
chore: Add typed stub for twilio.rest.Client + to_dict type hints fix#899
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
al-chris wants to merge3 commits intotwilio:mainChoose a base branch fromal-chris:main
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Open
Changes fromall commits
Commits
Show all changes
3 commits Select commitHold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
173 changes: 173 additions & 0 deletionstwilio/rest/__init__.pyi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,173 @@ | ||
| from typing import MutableMapping, Optional, Sequence | ||
| from twilio.base.client_base import ClientBase | ||
| from twilio.credential.credential_provider import CredentialProvider | ||
| from twilio.http import HttpClient | ||
| from twilio.rest.accounts import Accounts | ||
| from twilio.rest.api import Api | ||
| from twilio.rest.assistants import Assistants | ||
| from twilio.rest.bulkexports import Bulkexports | ||
| from twilio.rest.chat import Chat | ||
| from twilio.rest.content import Content | ||
| from twilio.rest.conversations import Conversations | ||
| from twilio.rest.events import Events | ||
| from twilio.rest.flex_api import FlexApi | ||
| from twilio.rest.frontline_api import FrontlineApi | ||
| from twilio.rest.iam import Iam | ||
| from twilio.rest.insights import Insights | ||
| from twilio.rest.intelligence import Intelligence | ||
| from twilio.rest.ip_messaging import IpMessaging | ||
| from twilio.rest.knowledge.KnowledgeBase import KnowledgeBase as Knowledge | ||
| from twilio.rest.lookups import Lookups | ||
| from twilio.rest.marketplace import Marketplace | ||
| from twilio.rest.messaging import Messaging | ||
| from twilio.rest.monitor import Monitor | ||
| from twilio.rest.notify import Notify | ||
| from twilio.rest.numbers import Numbers | ||
| from twilio.rest.oauth import Oauth | ||
| from twilio.rest.preview import Preview | ||
| from twilio.rest.preview_iam import PreviewIam | ||
| from twilio.rest.pricing import Pricing | ||
| from twilio.rest.proxy import Proxy | ||
| from twilio.rest.routes import Routes | ||
| from twilio.rest.serverless import Serverless | ||
| from twilio.rest.studio import Studio | ||
| from twilio.rest.supersim import Supersim | ||
| from twilio.rest.sync import Sync | ||
| from twilio.rest.taskrouter import Taskrouter | ||
| from twilio.rest.trunking import Trunking | ||
| from twilio.rest.trusthub import Trusthub | ||
| from twilio.rest.verify import Verify | ||
| from twilio.rest.video import Video | ||
| from twilio.rest.voice import Voice | ||
| from twilio.rest.wireless import Wireless | ||
| class Client(ClientBase): | ||
| def __init__( | ||
| self, | ||
| username: Optional[str] = None, | ||
| password: Optional[str] = None, | ||
| account_sid: Optional[str] = None, | ||
| region: Optional[str] = None, | ||
| http_client: Optional[HttpClient] = None, | ||
| environment: Optional[MutableMapping[str, str]] = None, | ||
| edge: Optional[str] = None, | ||
| user_agent_extensions: Optional[Sequence[str]] = None, | ||
| credential_provider: Optional[CredentialProvider] = None, | ||
| ) -> None: ... | ||
| @property | ||
| def accounts(self) -> Accounts: ... | ||
| @property | ||
| def api(self) -> Api: ... | ||
| @property | ||
| def assistants(self) -> Assistants: ... | ||
| @property | ||
| def bulkexports(self) -> Bulkexports: ... | ||
| @property | ||
| def chat(self) -> Chat: ... | ||
| @property | ||
| def content(self) -> Content: ... | ||
| @property | ||
| def conversations(self) -> Conversations: ... | ||
| @property | ||
| def events(self) -> Events: ... | ||
| @property | ||
| def flex_api(self) -> FlexApi: ... | ||
| @property | ||
| def frontline_api(self) -> FrontlineApi: ... | ||
| @property | ||
| def preview_iam(self) -> PreviewIam: ... | ||
| @property | ||
| def iam(self) -> Iam: ... | ||
| @property | ||
| def insights(self) -> Insights: ... | ||
| @property | ||
| def intelligence(self) -> Intelligence: ... | ||
| @property | ||
| def ip_messaging(self) -> IpMessaging: ... | ||
| @property | ||
| def knowledge(self) -> Knowledge: ... | ||
| @property | ||
| def lookups(self) -> Lookups: ... | ||
| @property | ||
| def marketplace(self) -> Marketplace: ... | ||
| @property | ||
| def messaging(self) -> Messaging: ... | ||
| @property | ||
| def monitor(self) -> Monitor: ... | ||
| @property | ||
| def notify(self) -> Notify: ... | ||
| @property | ||
| def numbers(self) -> Numbers: ... | ||
| @property | ||
| def oauth(self) -> Oauth: ... | ||
| @property | ||
| def preview(self) -> Preview: ... | ||
| @property | ||
| def pricing(self) -> Pricing: ... | ||
| @property | ||
| def proxy(self) -> Proxy: ... | ||
| @property | ||
| def routes(self) -> Routes: ... | ||
| @property | ||
| def serverless(self) -> Serverless: ... | ||
| @property | ||
| def studio(self) -> Studio: ... | ||
| @property | ||
| def supersim(self) -> Supersim: ... | ||
| @property | ||
| def sync(self) -> Sync: ... | ||
| @property | ||
| def taskrouter(self) -> Taskrouter: ... | ||
| @property | ||
| def trunking(self) -> Trunking: ... | ||
| @property | ||
| def trusthub(self) -> Trusthub: ... | ||
| @property | ||
| def verify(self) -> Verify: ... | ||
| @property | ||
| def video(self) -> Video: ... | ||
| @property | ||
| def voice(self) -> Voice: ... | ||
| @property | ||
| def wireless(self) -> Wireless: ... |
28 changes: 14 additions & 14 deletionstwilio/rest/knowledge/v1/knowledge/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.