build: update version (v0.0.77)

This commit is contained in:
Shunsuke Shibayama 2025-01-17 16:22:05 +09:00
parent 50c7b7a252
commit 1aa3f53d5d
4 changed files with 28 additions and 20 deletions

28
Cargo.lock generated
View file

@ -150,9 +150,9 @@ checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"
[[package]] [[package]]
name = "els" name = "els"
version = "0.1.63" version = "0.1.64-nightly.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49c7e9f9ea1a5c06658f62ea847b46d1cf8df134ff0c930b43e853ffab89bad9" checksum = "ecf1f4015871ac5c84b92f4944fdfef0df3fd8dcd2c491d81cfcf1983ae6744c"
dependencies = [ dependencies = [
"erg_common", "erg_common",
"erg_compiler", "erg_compiler",
@ -166,9 +166,9 @@ dependencies = [
[[package]] [[package]]
name = "erg_common" name = "erg_common"
version = "0.6.51" version = "0.6.52-nightly.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ad4fda0735a715c23dc5734962f285773c059ea40daf8ec684b6a5baea40cfe" checksum = "2990e4acd54a8c2b4eca32339470c05a3e7138ee8613760637ca45b195832511"
dependencies = [ dependencies = [
"backtrace-on-stack-overflow", "backtrace-on-stack-overflow",
"erg_proc_macros", "erg_proc_macros",
@ -179,9 +179,9 @@ dependencies = [
[[package]] [[package]]
name = "erg_compiler" name = "erg_compiler"
version = "0.6.51" version = "0.6.52-nightly.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42ff2bede142b4fabb7647c3af13c7b98536059b806dd30fb3e6e736a5ce6b05" checksum = "e70b4a003581fc2513e8433b245e29244bc5b46ae9f482f3daefb8d2f75a26c2"
dependencies = [ dependencies = [
"erg_common", "erg_common",
"erg_parser", "erg_parser",
@ -189,9 +189,9 @@ dependencies = [
[[package]] [[package]]
name = "erg_parser" name = "erg_parser"
version = "0.6.51" version = "0.6.52-nightly.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "edf62fd7becf0c32052c29be029b71b56a769c71eaa3fe8843afd2ac35454e48" checksum = "ca32663edb3bdb2b852d4fd9b50d3dc91c035abcd7fef75b799494f29f56db7f"
dependencies = [ dependencies = [
"erg_common", "erg_common",
"erg_proc_macros", "erg_proc_macros",
@ -200,9 +200,9 @@ dependencies = [
[[package]] [[package]]
name = "erg_proc_macros" name = "erg_proc_macros"
version = "0.6.51" version = "0.6.52-nightly.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07bab4b8655585e20aaecf2b5d865e6e3370d86b56eb775638d2a9a0d273378c" checksum = "4ed2b4299f1f5e2f358f8ffe17e02195313d0d088bb7cc21fe4aeacec5033610"
dependencies = [ dependencies = [
"quote", "quote",
"syn 1.0.109", "syn 1.0.109",
@ -709,7 +709,7 @@ dependencies = [
[[package]] [[package]]
name = "py2erg" name = "py2erg"
version = "0.0.76" version = "0.0.77"
dependencies = [ dependencies = [
"erg_common", "erg_common",
"erg_compiler", "erg_compiler",
@ -719,7 +719,7 @@ dependencies = [
[[package]] [[package]]
name = "pylyzer" name = "pylyzer"
version = "0.0.76" version = "0.0.77"
dependencies = [ dependencies = [
"els", "els",
"erg_common", "erg_common",
@ -729,7 +729,7 @@ dependencies = [
[[package]] [[package]]
name = "pylyzer_core" name = "pylyzer_core"
version = "0.0.76" version = "0.0.77"
dependencies = [ dependencies = [
"erg_common", "erg_common",
"erg_compiler", "erg_compiler",
@ -740,7 +740,7 @@ dependencies = [
[[package]] [[package]]
name = "pylyzer_wasm" name = "pylyzer_wasm"
version = "0.0.76" version = "0.0.77"
dependencies = [ dependencies = [
"erg_common", "erg_common",
"erg_compiler", "erg_compiler",

View file

@ -17,16 +17,16 @@ members = [
] ]
[workspace.package] [workspace.package]
version = "0.0.76" version = "0.0.77"
authors = ["Shunsuke Shibayama <sbym1346@gmail.com>"] authors = ["Shunsuke Shibayama <sbym1346@gmail.com>"]
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
edition = "2021" edition = "2021"
repository = "https://github.com/mtshiba/pylyzer" repository = "https://github.com/mtshiba/pylyzer"
[workspace.dependencies] [workspace.dependencies]
erg_common = { version = "0.6.51", features = ["py_compat", "els"] } erg_common = { version = "0.6.52-nightly.0", features = ["py_compat", "els"] }
erg_compiler = { version = "0.6.51", features = ["py_compat", "els"] } erg_compiler = { version = "0.6.52-nightly.0", features = ["py_compat", "els"] }
els = { version = "0.1.63", features = ["py_compat"] } els = { version = "0.1.64-nightly.0", features = ["py_compat"] }
# rustpython-parser = { version = "0.3.0", features = ["all-nodes-with-ranges", "location"] } # rustpython-parser = { version = "0.3.0", features = ["all-nodes-with-ranges", "location"] }
# rustpython-ast = { version = "0.3.0", features = ["all-nodes-with-ranges", "location"] } # rustpython-ast = { version = "0.3.0", features = ["all-nodes-with-ranges", "location"] }
rustpython-parser = { git = "https://github.com/RustPython/Parser", version = "0.4.0", features = ["all-nodes-with-ranges", "location"] } rustpython-parser = { git = "https://github.com/RustPython/Parser", version = "0.4.0", features = ["all-nodes-with-ranges", "location"] }
@ -50,7 +50,7 @@ simplified_chinese = ["erg_common/simplified_chinese", "els/simplified_chinese"]
traditional_chinese = ["erg_common/traditional_chinese", "els/traditional_chinese"] traditional_chinese = ["erg_common/traditional_chinese", "els/traditional_chinese"]
[dependencies] [dependencies]
pylyzer_core = { version = "0.0.76", path = "./crates/pylyzer_core" } pylyzer_core = { version = "0.0.77", path = "./crates/pylyzer_core" }
erg_common = { workspace = true } erg_common = { workspace = true }
els = { workspace = true } els = { workspace = true }

View file

@ -20,7 +20,7 @@ erg_common = { workspace = true }
erg_compiler = { workspace = true } erg_compiler = { workspace = true }
rustpython-parser = { workspace = true } rustpython-parser = { workspace = true }
rustpython-ast = { workspace = true } rustpython-ast = { workspace = true }
py2erg = { version = "0.0.76", path = "../py2erg" } py2erg = { version = "0.0.77", path = "../py2erg" }
[lib] [lib]
path = "lib.rs" path = "lib.rs"

View file

@ -1,18 +1,26 @@
def imaginary(x): def imaginary(x):
return x.imag return x.imag
def imaginary2(x):
return imaginary(x)
assert imaginary(1) == 0 assert imaginary(1) == 0
assert imaginary(1.0) <= 0.0 assert imaginary(1.0) <= 0.0
assert imaginary2(1) == 0
assert imaginary2(1.0) <= 0.0
print(imaginary("a")) # ERR print(imaginary("a")) # ERR
class C: class C:
def method(self, x): return x def method(self, x): return x
def call_method(obj, x): def call_method(obj, x):
return obj.method(x) return obj.method(x)
def call_method2(obj, x):
return call_method(obj, x)
c = C() c = C()
assert call_method(c, 1) == 1 assert call_method(c, 1) == 1
assert call_method(c, 1) == "a" # ERR assert call_method(c, 1) == "a" # ERR
assert call_method2(c, 1) == 1
print(call_method(1, 1)) # ERR print(call_method(1, 1)) # ERR
print(call_method(c)) # ERR print(call_method(c)) # ERR