Skip to content
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

Add type annotations to dial.py #792

Merged
merged 4 commits into from Jan 17, 2024
Merged

Add type annotations to dial.py #792

merged 4 commits into from Jan 17, 2024

Conversation

emontnemery
Copy link
Collaborator

No description provided.

and service_info.port
and (service_info.server or len(service_info.addresses) > 0)
):
if service_info and service_info.port:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no risk that the port is 0, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, port 0 is not a valid port.

@emontnemery emontnemery merged commit 1dc2770 into master Jan 17, 2024
1 check passed
@emontnemery emontnemery deleted the type_annotations_dial branch January 17, 2024 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants