Skip to content

sources/azure: address mypy/pyright typing complaints#1245

Merged
TheRealFalcon merged 7 commits into
canonical:mainfrom
cjp256:azure-type-checking
Feb 12, 2022
Merged

sources/azure: address mypy/pyright typing complaints#1245
TheRealFalcon merged 7 commits into
canonical:mainfrom
cjp256:azure-type-checking

Conversation

@cjp256
Copy link
Copy Markdown
Contributor

@cjp256 cjp256 commented Feb 4, 2022

No description provided.

@cjp256 cjp256 force-pushed the azure-type-checking branch from 07f2a96 to 347804a Compare February 4, 2022 16:23
@cjp256
Copy link
Copy Markdown
Contributor Author

cjp256 commented Feb 4, 2022

Depends on #1229

@cjp256 cjp256 changed the title sources/azure: address mypy complaints sources/azure: address mypy/pyright typing complaints Feb 4, 2022
@cjp256 cjp256 marked this pull request as draft February 4, 2022 16:27
@cjp256 cjp256 force-pushed the azure-type-checking branch 4 times, most recently from a8de074 to 2b9e049 Compare February 8, 2022 01:18
@cjp256 cjp256 marked this pull request as ready for review February 8, 2022 01:18
Raise runtime errors for unhandled cases which would cause other
exceptions.  Ignore types for a few cases where a non-trivial
refactor would be required to prevent the warning.

Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
@cjp256 cjp256 force-pushed the azure-type-checking branch from 2b9e049 to 1ab6930 Compare February 8, 2022 12:43
Copy link
Copy Markdown
Contributor

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

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

I left a number of comments inline. Take or leave what you'd like.

Comment thread cloudinit/distros/__init__.py Outdated
Comment thread cloudinit/sources/helpers/azure.py Outdated
Comment thread cloudinit/sources/DataSourceAzure.py
Comment thread cloudinit/sources/DataSourceAzure.py Outdated
Comment thread cloudinit/sources/DataSourceAzure.py Outdated
Comment thread cloudinit/sources/DataSourceAzure.py Outdated
Comment thread cloudinit/sources/DataSourceAzure.py Outdated
Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
@cjp256 cjp256 force-pushed the azure-type-checking branch 5 times, most recently from 0354944 to 3cdbb7c Compare February 9, 2022 15:18
Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
@cjp256 cjp256 force-pushed the azure-type-checking branch from fc33511 to 4670981 Compare February 9, 2022 15:22
Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
Copy link
Copy Markdown
Contributor

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

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

LGTM! Got a conflict now though from me merging the other PR first.

@TheRealFalcon TheRealFalcon merged commit 0b41b35 into canonical:main Feb 12, 2022
@cjp256 cjp256 deleted the azure-type-checking branch April 25, 2022 16:37
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.

3 participants