8000 typing upgrade to 3.13.2 by arihant2math · Pull Request #5590 · RustPython/RustPython · GitHub
[go: up one dir, main page]

Skip to content

typing upgrade to 3.13.2 #5590

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

Merged
merged 23 commits into from
Apr 27, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
minor fix
  • Loading branch information
arihant2math committed Apr 18, 2025
commit 0ed953593bf75afc7dd0f58cb9f96ab037e956ed
10 changes: 2 additions & 8 deletions vm/src/stdlib/typing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ pub(crate) mod _typing {
#[allow(dead_code)]
pub(crate) struct ParamSpec {
name: PyObjectRef,
default: Option<PyObjectRef>,
}

#[pyclass(flags(BASETYPE))]
Expand All @@ -91,15 +90,10 @@ pub(crate) mod _typing {
fn name(&self) -> PyObjectRef {
self.name.clone()
}

#[pygetset(magic)]
fn default(&self) -> Option<PyObjectRef> {
self.default.clone()
}
}

pub(crate) fn make_paramspec(name: PyObjectRef, default: Option<PyObjectRef>) -> ParamSpec {
ParamSpec { name, default }
pub(crate) fn make_paramspec(name: PyObjectRef) -> ParamSpec {
ParamSpec { name }
}

#[pyattr]
Expand Down
0