1//! Generate Python typing stub file a.k.a. `*.pyi` file.
2
3mod arg;
4mod class;
5mod enum_;
6mod error;
7mod function;
8mod member;
9mod method;
10mod module;
11mod new;
12mod stub_info;
13mod variable;
14
15pub use arg::*;
16pub use class::*;
17pub use enum_::*;
18pub use error::*;
19pub use function::*;
20pub use member::*;
21pub use method::*;
22pub use module::*;
23pub use new::*;
24pub use stub_info::*;
25pub use variable::*;
26
27use crate::stub_type::ModuleRef;
28use std::collections::HashSet;
29
30fn indent() -> &'static str {
31 " "
32}
33
34pub trait Import {
35 fn import(&self) -> HashSet<ModuleRef>;
36}
37