8000 feat: implement `zlib.__version__` · RustPython/RustPython@9083860 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9083860

Browse files
rexledesmayouknowone
authored andcommitted
feat: implement zlib.__version__
1 parent aee4c7a commit 9083860

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/src/zlib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ mod zlib {
3131
Z_NO_COMPRESSION, Z_NO_FLUSH, Z_PARTIAL_FLUSH, Z_RLE, Z_SYNC_FLUSH, Z_TREES,
3232
};
3333

34+
#[pyattr(name = "__version__")]
35+
const __VERSION__: &str = "1.0";
36+
3437
// we're statically linking libz-rs, so the compile-time and runtime
3538
// versions will always be the same
3639
#[pyattr(name = "ZLIB_RUNTIME_VERSION")]

0 commit comments

Comments
 (0)
0