-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[Communication] - Phone Numbers - Fixed apiview warnings #17172
Conversation
...mmunication-phonenumbers/azure/communication/phonenumbers/aio/_phone_numbers_client_async.py
Outdated
Show resolved
Hide resolved
...n/azure-communication-phonenumbers/azure/communication/phonenumbers/_phone_numbers_client.py
Outdated
Show resolved
Hide resolved
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.
I think we should fix the unused-import lint warning instead of disabling them.
from ._generated._phone_numbers_client import PhoneNumbersClient as PhoneNumbersClientGen | ||
from ._generated.models import PhoneNumberSearchRequest | ||
from ._shared.utils import parse_connection_str, get_authentication_policy | ||
from ._version import SDK_MONIKER | ||
|
||
if TYPE_CHECKING: |
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.
What is the 'if TYPE_CHECKING' for?
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.
This is a validation we put for the interpreter to have reference to the types of parameters we declare in our code. It's just type hinting stuff.
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.
do we need to add this in all other files?
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.
We already have it on chat and PNM as of now.
b6c9e64
to
46d1ce3
Compare
46d1ce3
to
4d42a41
Compare
4d42a41
to
df0facf
Compare
No description provided.