marimo
marimo copied to clipboard
Fileformat creates lint errors with sql
Describe the bug
Environment
Vim, pyright
Rendering from 0.13.2
Code to reproduce
Maybe a viable solution is:
@app.cell
def _(graphemes):
emoji_freq = mo.sql(
f"""
select
count(grapheme) as total,
grapheme
from
graphemes
group by
grapheme
order by
total
""",
used_tables=[graphemes]
)
return emoji_freq # regardless
NB.
Parameter doesn't match call. For instance, if I imported this cell and called it, there's an expectation of 1 argument.
Ideally, should take the table, and maybe mo.sql defaults to using tables if the runtime is not initialized