cpython-async: try to fix rust deps lint

Summary: Use cpython crate directly in code. The py_class! macro references ::cpython which keeps cpython as a direct dependency, but the linter doesn't seem to expand the macro, so it wasn't seeing any uses of cpython.

Reviewed By: jordanwebster

Differential Revision: D39296144

fbshipit-source-id: 382da2eaf8d119517a274ffd7a3c4b43212ebb21
This commit is contained in:
Muir Manders 2022-09-14 16:36:52 -07:00 committed by Facebook GitHub Bot
parent 6b12105d53
commit 0c5db804f7
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
use std::cell::RefCell;
use cpython_ext::cpython::*;
use cpython::*;
use cpython_ext::ResultPyErrExt;
use futures::future::BoxFuture;
use futures::future::Future;

View File

@ -21,8 +21,8 @@ mod stream;
// Re-export.
pub use anyhow;
pub use async_runtime;
pub use cpython;
pub use cpython_ext;
pub use cpython_ext::cpython;
pub use future::future as PyFuture;
pub use futures;
pub use stream::TStream;

View File

@ -7,7 +7,7 @@
use std::cell::RefCell;
use cpython_ext::cpython::*;
use cpython::*;
use cpython_ext::AnyhowResultExt;
use cpython_ext::ResultPyErrExt;
use cpython_ext::Str;