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]
"""
...
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.