| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
📝 Walkthrough
WalkthroughThis PR introduces deprecation warnings for multi-argument throw signatures across async generators, coroutines, and generators. It enhances error messages for function positional argument mismatches and updates PyPartial's module attribute and representation logic. Changes
Sequence DiagramsequenceDiagram
participant AsyncGen as AsyncGenerator/Coroutine/Generator
participant Warn as warn_deprecated_throw_signature()
participant VM as VirtualMachine
participant Inner as Inner throw()
AsyncGen->>Warn: Call with exc_val, exc_tb
alt exc_val or exc_tb present
Warn->>VM: Emit deprecation warning
VM-->>Warn: PyResult
rect rgb(200, 220, 240)
Note over Warn: If hook raises,<br/>error propagates
end
Warn-->>AsyncGen: Result (Ok or Err)
else Both absent
Warn-->>AsyncGen: Ok(())
end
alt warn_result is Ok
AsyncGen->>Inner: Proceed with throw()
Inner-->>AsyncGen: Result
else warn_result is Err
rect rgb(240, 200, 200)
Note over AsyncGen: Control flow altered:<br/>throw aborted, error returned
end
AsyncGen-->>AsyncGen: Return error
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
📜 Recent review details Configuration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro 📥 CommitsReviewing files that changed from the base of the PR and between 37c47fc and 60f5185. ⛔ Files ignored due to path filters (6)
📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
Learnt from: CR Repo: RustPython/RustPython PR: 0 File: .github/copilot-instructions.md:0-0 Timestamp: 2025-12-27T14:03:49.034Z Learning: Applies to **/*.rs : Use the macro system (`pyclass`, `pymodule`, `pyfunction`, etc.) when implementing Python functionality in Rust Applied to files:
crates/vm/src/warn.rs (1)crates/vm/src/stdlib/functools.rs (2) crates/vm/src/builtins/type.rs (1)crates/vm/src/builtins/coroutine.rs (1) crates/vm/src/coroutine.rs (1)crates/vm/src/builtins/generator.rs (1) crates/vm/src/coroutine.rs (1)crates/vm/src/builtins/asyncgenerator.rs (1) crates/vm/src/coroutine.rs (1)🔇 Additional comments (14) crates/vm/src/builtins/coroutine.rs (3)crates/vm/src/coroutine.rs (2) 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. ❤️ ShareComment @coderabbitai help to get the list of available commands and usage tips. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary by CodeRabbit
New Features
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.