Skip to content

Allow types with generics #149

@thesayyn

Description

@thesayyn

Currently generics in types only limited to list and any other type can't implement a type with similar constructs.
For instance while this is correct starlark type, starlark-rust does not permit expressing such types.

def try_types(g: http) -> future[http_response]:
   return h.get("https://httpbin.io/ip")


 try_types(http)

FWIW I'd be happy to send patches if this something that starlark-rust maintainers are willing to take as contribution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions