Rename async to pyasync in the derive backend to fix #309

Patch created by @IvanKuzavkov
This commit is contained in:
konstin 2018-12-15 14:13:18 +01:00
parent 26b88ca2f9
commit 6d7f326176

View file

@ -99,39 +99,39 @@ pub const ASYNC: Proto = Proto {
MethodProto::Unary { MethodProto::Unary {
name: "__await__", name: "__await__",
pyres: true, pyres: true,
proto: "::pyo3::class::async::PyAsyncAwaitProtocol", proto: "::pyo3::class::pyasync::PyAsyncAwaitProtocol",
}, },
MethodProto::Unary { MethodProto::Unary {
name: "__aiter__", name: "__aiter__",
pyres: true, pyres: true,
proto: "::pyo3::class::async::PyAsyncAiterProtocol", proto: "::pyo3::class::pyasync::PyAsyncAiterProtocol",
}, },
MethodProto::Unary { MethodProto::Unary {
name: "__anext__", name: "__anext__",
pyres: true, pyres: true,
proto: "::pyo3::class::async::PyAsyncAnextProtocol", proto: "::pyo3::class::pyasync::PyAsyncAnextProtocol",
}, },
MethodProto::Unary { MethodProto::Unary {
name: "__aenter__", name: "__aenter__",
pyres: true, pyres: true,
proto: "::pyo3::class::async::PyAsyncAenterProtocol", proto: "::pyo3::class::pyasync::PyAsyncAenterProtocol",
}, },
MethodProto::Quaternary { MethodProto::Quaternary {
name: "__aexit__", name: "__aexit__",
arg1: "ExcType", arg1: "ExcType",
arg2: "ExcValue", arg2: "ExcValue",
arg3: "Traceback", arg3: "Traceback",
proto: "::pyo3::class::async::PyAsyncAexitProtocol", proto: "::pyo3::class::pyasync::PyAsyncAexitProtocol",
}, },
], ],
py_methods: &[ py_methods: &[
PyMethod { PyMethod {
name: "__aenter__", name: "__aenter__",
proto: "::pyo3::class::async::PyAsyncAenterProtocolImpl", proto: "::pyo3::class::pyasync::PyAsyncAenterProtocolImpl",
}, },
PyMethod { PyMethod {
name: "__aexit__", name: "__aexit__",
proto: "::pyo3::class::async::PyAsyncAexitProtocolImpl", proto: "::pyo3::class::pyasync::PyAsyncAexitProtocolImpl",
}, },
], ],
}; };