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

Fix type of StatusBase.name #980

Merged
merged 1 commit into from
Jul 26, 2023
Merged

Conversation

benhoyt
Copy link
Collaborator

@benhoyt benhoyt commented Jul 26, 2023

This also fixes the type of a subclass's .name attribute, such as BlockedStatus.name, so that a "# type: ignore" comment is not required in such things as "status_str == BlockedStatus.name".

See canonical/github-runner-operator#79 (comment)

Please describe the why and the how of your change here.

This also fixes the type of a subclass's .name attribute, such as
BlockedStatus.name, so that a "# type: ignore" comment is not required
in such things as "status_str == BlockedStatus.name".

See canonical/github-runner-operator#79 (comment)
@benhoyt benhoyt merged commit fad95d7 into canonical:main Jul 26, 2023
19 checks passed
@benhoyt benhoyt deleted the fix-statusbase-name branch July 26, 2023 14:46
xtrusia pushed a commit to xtrusia/operator that referenced this pull request Jul 11, 2024
This also fixes the type of a subclass's .name attribute, such as
BlockedStatus.name, so that a "# type: ignore" comment is not required
in such things as "status_str == BlockedStatus.name".

See canonical/github-runner-operator#79 (comment)

(cherry picked from commit fad95d7)
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