Merge pull request #2117 from youknowone/pymodule-attr-use · ugaemi/RustPython@b57d943 · GitHub
Skip to content

Commit b57d943

Browse files
authored
Merge pull request RustPython#2117 from youknowone/pymodule-attr-use
Allow `use` for `#[pyattr]`
2 parents cf10a34 + 33bb4e1 commit b57d943

3 files changed

Lines changed: 63 additions & 59 deletions

File tree

derive/src/pymodule.rs

Lines changed: 50 additions & 43 deletions

derive/src/util.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ pub(crate) enum ItemType {
8484
Struct,
8585
Enum,
8686
Const,
87+
Use,
8788
}
8889

8990
pub(crate) struct ItemIdent<'a> {

vm/src/stdlib/zlib.rs

Lines changed: 12 additions & 16 deletions

0 commit comments

Comments
 (0)