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

chore: pull types from wip PR for upcoming Model.wait_for_idle #1203

Merged
merged 21 commits into from
Nov 22, 2024

Conversation

dimaqq
Copy link
Contributor

@dimaqq dimaqq commented Nov 20, 2024

Improve type hints.
Sourced from #1104
These type hints will be used to upstream the new wait_for_idle()

@dimaqq dimaqq marked this pull request as ready for review November 20, 2024 08:52
Copy link
Contributor

@james-garner-canonical james-garner-canonical left a comment

Choose a reason for hiding this comment

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

Looks great, just one potential blocker -- behaviour change for Model.info which I guess just means either correct the docstring or revert the behaviour change (and change the type annotation accordingly).

juju/model.py Show resolved Hide resolved
juju/model.py Outdated Show resolved Hide resolved
juju/model.py Outdated Show resolved Hide resolved
juju/status.py Outdated Show resolved Hide resolved
juju/url.py Outdated Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
juju/model.py Outdated Show resolved Hide resolved
@dimaqq dimaqq force-pushed the chore-type-hints-for-wait-for-idle branch from 43d1935 to 99d8fc1 Compare November 22, 2024 03:23
juju/status.py Show resolved Hide resolved
.github/workflows/test.yaml Show resolved Hide resolved
juju/client/connection.py Show resolved Hide resolved
juju/model.py Outdated Show resolved Hide resolved
juju/status.py Show resolved Hide resolved
juju/status.py Outdated Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
tox.ini Outdated Show resolved Hide resolved
@dimaqq
Copy link
Contributor Author

dimaqq commented Nov 22, 2024

re self._info, pls reload

Copy link
Contributor

@james-garner-canonical james-garner-canonical left a comment

Choose a reason for hiding this comment

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

Looking good, just one docstring inaccuracy that could be fixed before merging

juju/model.py Outdated Show resolved Hide resolved
@dimaqq
Copy link
Contributor Author

dimaqq commented Nov 22, 2024

I'll need to either wait for canonical/pylxd#615

Or rip out the tox.ini and deps changes and chuck them aside... to a separate PR.

@dimaqq
Copy link
Contributor Author

dimaqq commented Nov 22, 2024

/merge

@jujubot jujubot merged commit f176d82 into juju:main Nov 22, 2024
17 of 22 checks passed
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