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

More mypy, fix a couple of return types #1253

Merged
merged 13 commits into from Mar 13, 2020

Conversation

aaronchall
Copy link
Contributor

Feel free to edit further before merging if you like.

Copy link
Member

@grahamc grahamc left a comment

Choose a reason for hiding this comment

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

Just a few nits, in an otherwise excellent looking PR!

nixops/util.py Outdated Show resolved Hide resolved
nixops/resources/__init__.py Outdated Show resolved Hide resolved
nixops/resources/__init__.py Outdated Show resolved Hide resolved
nixops/resources/__init__.py Outdated Show resolved Hide resolved
nixops/resources/__init__.py Outdated Show resolved Hide resolved
nixops/backends/__init__.py Outdated Show resolved Hide resolved
nixops/backends/__init__.py Outdated Show resolved Hide resolved
nixops/backends/__init__.py Outdated Show resolved Hide resolved
nixops/backends/__init__.py Outdated Show resolved Hide resolved
aaronchall and others added 7 commits March 12, 2020 22:01
Co-Authored-By: Graham Christensen <graham@grahamc.com>
Co-Authored-By: Graham Christensen <graham@grahamc.com>
Co-Authored-By: Graham Christensen <graham@grahamc.com>
Co-Authored-By: Graham Christensen <graham@grahamc.com>
Co-Authored-By: Graham Christensen <graham@grahamc.com>
Co-Authored-By: Graham Christensen <graham@grahamc.com>
back out one silly None and narrow an Any to str
Copy link
Contributor Author

@aaronchall aaronchall left a comment

Choose a reason for hiding this comment

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

I think I've addressed all comments

@grahamc
Copy link
Member

grahamc commented Mar 13, 2020

Thank you a lot!

@grahamc
Copy link
Member

grahamc commented Mar 13, 2020

Do my commits look good to you?

@aaronchall
Copy link
Contributor Author

looks great! I like the set annotation!

@grahamc grahamc merged commit 595d9be into NixOS:start-with-types Mar 13, 2020
grahamc added a commit that referenced this pull request Mar 13, 2020
More mypy, fix a couple of return types

* back out one silly None and narrow an Any to str
* str to Optional[str] for restore id arg type
* black
* backend: encrypted_links_to: prove that it is a set
* backend: extract_key_options: type ET.Element

Co-authored-by: Graham Christensen <graham@grahamc.com>
@grahamc
Copy link
Member

grahamc commented Mar 13, 2020

By the way, this is how this PR did:

Imprecision went down:
nixops.backends:		50.29 -> 39.66
nixops.deployment:		18.94 -> 18.22
nixops.resources:		41.5 -> 39.53
nixops.util:		21.89 -> 18.0
Total:		30.96 -> 29.6

grahamc added a commit that referenced this pull request Mar 13, 2020
More mypy, fix a couple of return types

* back out one silly None and narrow an Any to str
* str to Optional[str] for restore id arg type
* black
* backend: encrypted_links_to: prove that it is a set
* backend: extract_key_options: type ET.Element

Co-authored-by: Graham Christensen <graham@grahamc.com>
@grahamc grahamc added this to the 2.0 milestone Apr 20, 2020
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