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 ABC usage issues #317

Merged
merged 1 commit into from
Jan 6, 2025
Merged

Fix ABC usage issues #317

merged 1 commit into from
Jan 6, 2025

Conversation

amaslenn
Copy link
Contributor

@amaslenn amaslenn commented Dec 19, 2024

Summary

  1. Inherit from ABC if there @abstractmethods
  2. Do not make gen_srun_success_check() abstruct, simply return an empty string by default. When needed, this method will be overriden.

Test Plan

  1. CI.
  2. Unfortunately, ruff and pyright do not catch such issues. Here is pyright's position about it: @abstractmethod should only be allowed on classes derived from ABCMeta microsoft/pyright#3952

Additional Notes

1. Inherit from ABC if there @abstractmethods
2. Do not make gen_srun_success_check() abstruct, simply return an empty
   string by default. When needed, this method will be overriden.
@amaslenn amaslenn added the enhancement New feature or request label Dec 19, 2024
@amaslenn amaslenn merged commit e02c023 into main Jan 6, 2025
2 checks passed
@amaslenn amaslenn deleted the am/fix-abc branch January 6, 2025 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants