lcompilers / lpython

Python compiler
https://lpython.org/
Other
1.37k stars 157 forks source link

Add support for global `set` declaration #2605

Closed kmr-srbh closed 3 months ago

kmr-srbh commented 3 months ago

Fixes #2604

Working

s: set[str] = {"a", "b", "c", "a"}
s.add("d")
(base) saurabh-kumar@Awadh:~/Projects/System/lpython$ ./src/bin/lpython ./examples/example.py
(base) saurabh-kumar@Awadh:~/Projects/System/lpython$ 
Shaikh-Ubaid commented 3 months ago

Please mark it as "Ready for review" when ready.