We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example:
type mylist[T] = list[T] type mydict[V] = dict[str, V] import sciline as sl def make_int_list() -> mylist[int]: return [1, 2, 3] def make_str_list() -> mylist[str]: return ['a', 'b', 'c'] def f[T](x: mylist[T]) -> mydict[T]: return {f'{x}': x} pl = sl.Pipeline([f, make_int_list, make_str_list]) pl.get(mydict[int]).compute()
This is much cleaner than the sciline.Scope helper and the use of NewType.
sciline.Scope
NewType
Note that mypy might still not support this (fully).
mypy
The text was updated successfully, but these errors were encountered:
Looks really neat! Does it imply that we can only use python 3.12 for docs build?
Sorry, something went wrong.
Does it imply that we can only use python 3.12 for docs build?
Yes, I think so.
No branches or pull requests
Example:
This is much cleaner than the
sciline.Scope
helper and the use ofNewType
.Note that
mypy
might still not support this (fully).The text was updated successfully, but these errors were encountered: