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