-
Notifications
You must be signed in to change notification settings - Fork 14
fix: add missing types for interface methods #91
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
Conversation
📝 WalkthroughWalkthroughThis change adds explicit return type annotations to several abstract property methods within the Changes
Sequence Diagram(s)No sequence diagram generated as the changes are limited to type annotations and do not affect control flow or feature logic. ✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
snakemake_interface_executor_plugins/jobs.py (1)
118-118: Complex nested type is explicit and correct.
Sequence[Sequence[SingleJobExecutorInterface]]precisely reflects a topologically-sorted grouping. Consider introducing a type alias if this appears in multiple places for readability, but not blocking.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
snakemake_interface_executor_plugins/jobs.py(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
`**/*.py`: Do not try to improve formatting. Do not suggest type annotations for...
**/*.py: Do not try to improve formatting.
Do not suggest type annotations for functions that are defined inside of functions or methods.
Do not suggest type annotation of theselfargument of methods.
Do not suggest type annotation of theclsargument of classmethods.
Do not suggest return type annotation if a function or method does not contain areturnstatement.
⚙️ Source: CodeRabbit Configuration File
List of files the instruction was applied to:
snakemake_interface_executor_plugins/jobs.py
🔇 Additional comments (3)
snakemake_interface_executor_plugins/jobs.py (3)
104-104: Annotation looks correct.Adding
Optional[str]accurately captures thatmessagemay be unset. No further concerns.
110-110: Good use of precise iterable typing.
Iterable[SingleJobExecutorInterface]conveys the expected element type without constraining the concrete container. 👍
114-114: Return type clarified.
groupidbeing explicitly typed asstrremoves ambiguity; ensure all call-sites already treat it as such (e.g. no int comparisons).
Summary by CodeRabbit