Skip to content

Add type annotations for the base DNS API #1434

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

Merged
merged 3 commits into from
Mar 1, 2020

Conversation

Kami
Copy link
Member

@Kami Kami commented Mar 1, 2020

This pull request adds type annotations for the base DNS API.

Kami added 2 commits March 1, 2020 13:53
parent class signature for methods which are overriden in the subclass.

This means we sadly need to rely on annotations from the base class.

See python/mypy#3903 for details.
@@ -21,14 +21,8 @@

from typing import Type, cast

ec2_cls = get_driver(Provider.EC2)
Copy link
Member Author

Choose a reason for hiding this comment

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

Sadly this doesn't work as expected.

This means we need to rely on base / parent class annotations until we have type annotations for all the driver subclasses.

#1306 (comment)

@Kami Kami merged commit c39d282 into apache:trunk Mar 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant