posit-dev / py-shinyswatch

Bootswatch themes for py-shiny
https://posit-dev.github.io/py-shinyswatch/
MIT License
28 stars 3 forks source link

Type stubs generated by pyright do not have a return type #5

Closed wch closed 1 year ago

wch commented 1 year ago

When type stubs are generated by pyright, they don't include return type, and they don't include the function body. This means that when a type checker uses the stubs, it can't know the return type.

def cosmo():
    """
    To see a live demo of the cosmo Bootswatch theme, visit [https://bootswatch.com/cosmo/](https://bootswatch.com/cosmo/).

    [text clipped]
    """
    ...