mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
Add inspect.CO_ASYNC_GENERATOR constant
This commit is contained in:
1 file changed
+4
@@ -73,6 +73,10 @@ impl CodeFlags {
|
||||
pub const NAME_MAPPING: &'static [(&'static str, CodeFlags)] = &[
|
||||
("GENERATOR", CodeFlags::IS_GENERATOR),
|
||||
("COROUTINE", CodeFlags::IS_COROUTINE),
|
||||
(
|
||||
"ASYNC_GENERATOR",
|
||||
Self::from_bits_truncate(Self::IS_GENERATOR.bits | Self::IS_COROUTINE.bits),
|
||||
),
|
||||
("VARARGS", CodeFlags::HAS_VARARGS),
|
||||
("VARKEYWORDS", CodeFlags::HAS_VARKEYWORDS),
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user