Merge pull request #3712 from youknowone/pyfunctionref

Remove PyFunctionRef
This commit is contained in:
Jeong YunWon
2022-05-17 09:03:03 +09:00
committed by GitHub
2 changed files with 3 additions and 6 deletions

View File

@@ -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)]

View File

@@ -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,