mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Merge pull request #3712 from youknowone/pyfunctionref
Remove PyFunctionRef
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
mod jitfunc;
|
||||
|
||||
use super::{
|
||||
tuple::PyTupleTyped, PyAsyncGen, PyCode, PyCoroutine, PyDictRef, PyGenerator, PyStrRef,
|
||||
tuple::PyTupleTyped, PyAsyncGen, PyCode, PyCoroutine, PyDictRef, PyGenerator, PyStr, PyStrRef,
|
||||
PyTupleRef, PyTypeRef,
|
||||
};
|
||||
use crate::common::lock::PyMutex;
|
||||
@@ -21,9 +21,6 @@ use crate::{common::lock::OnceCell, convert::ToPyObject};
|
||||
use itertools::Itertools;
|
||||
#[cfg(feature = "jit")]
|
||||
use rustpython_jit::CompiledCode;
|
||||
use rustpython_vm::builtins::PyStr;
|
||||
|
||||
pub type PyFunctionRef = PyRef<PyFunction>;
|
||||
|
||||
#[pyclass(module = false, name = "function")]
|
||||
#[derive(Debug)]
|
||||
|
||||
@@ -14,7 +14,7 @@ mod builtins {
|
||||
builtins::{
|
||||
asyncgenerator::PyAsyncGen,
|
||||
enumerate::PyReverseSequenceIterator,
|
||||
function::{PyCellRef, PyFunctionRef},
|
||||
function::{PyCellRef, PyFunction},
|
||||
int::PyIntRef,
|
||||
iter::PyCallableIterator,
|
||||
list::{PyList, SortOptions},
|
||||
@@ -802,7 +802,7 @@ mod builtins {
|
||||
|
||||
#[pyfunction]
|
||||
pub fn __build_class__(
|
||||
function: PyFunctionRef,
|
||||
function: PyRef<PyFunction>,
|
||||
qualified_name: PyStrRef,
|
||||
bases: PosArgs,
|
||||
mut kwargs: KwArgs,
|
||||
|
||||
Reference in New Issue
Block a user