-
Notifications
You must be signed in to change notification settings - Fork 146
(torchx/specs) component fn python-3.10 compatibility. Support BinOp for optional types and builtin container types. #1110
New issue
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
Conversation
|
This pull request was exported from Phabricator. Differential Revision: D81826386 |
|
This pull request was exported from Phabricator. Differential Revision: D81826386 |
09c2172 to
ed6f82e
Compare
…for optional types and builtin container types. (#1110) Summary: Pull Request resolved: #1110 For python-3.10, support type annotations in component fn arguments using builtin `dict`, `list`, `tuple` types and `|` for Optional types. Allows component fn to be typed as: ``` def foo(env: dict[str, str] | None): pass ``` versus ``` from typing import Dict, Optional def foo(env: Optional[Dict[str, str]]): pass ``` Reviewed By: highker Differential Revision: D81826386
|
This pull request was exported from Phabricator. Differential Revision: D81826386 |
…for optional types and builtin container types. (#1110) Summary: Pull Request resolved: #1110 For python-3.10, support type annotations in component fn arguments using builtin `dict`, `list`, `tuple` types and `|` for Optional types. Allows component fn to be typed as: ``` def foo(env: dict[str, str] | None): pass ``` versus ``` from typing import Dict, Optional def foo(env: Optional[Dict[str, str]]): pass ``` Reviewed By: highker Differential Revision: D81826386
ed6f82e to
1e59fac
Compare
|
This pull request was exported from Phabricator. Differential Revision: D81826386 |
…for optional types and builtin container types. (#1110) Summary: Pull Request resolved: #1110 For python-3.10, support type annotations in component fn arguments using builtin `dict`, `list`, `tuple` types and `|` for Optional types. Allows component fn to be typed as: ``` def foo(env: dict[str, str] | None): pass ``` versus ``` from typing import Dict, Optional def foo(env: Optional[Dict[str, str]]): pass ``` Reviewed By: highker Differential Revision: D81826386
1e59fac to
6f80df1
Compare
|
This pull request was exported from Phabricator. Differential Revision: D81826386 |
…for optional types and builtin container types. (#1110) Summary: Pull Request resolved: #1110 For python-3.10, support type annotations in component fn arguments using builtin `dict`, `list`, `tuple` types and `|` for Optional types. Allows component fn to be typed as: ``` def foo(env: dict[str, str] | None): pass ``` versus ``` from typing import Dict, Optional def foo(env: Optional[Dict[str, str]]): pass ``` Reviewed By: highker Differential Revision: D81826386
6f80df1 to
f7db16c
Compare
|
This pull request was exported from Phabricator. Differential Revision: D81826386 |
…for optional types and builtin container types. (#1110) Summary: Pull Request resolved: #1110 For python-3.10, support type annotations in component fn arguments using builtin `dict`, `list`, `tuple` types and `|` for Optional types. Allows component fn to be typed as: ``` def foo(env: dict[str, str] | None): pass ``` versus ``` from typing import Dict, Optional def foo(env: Optional[Dict[str, str]]): pass ``` Reviewed By: highker Differential Revision: D81826386
f7db16c to
71a840d
Compare
…for optional types and builtin container types. (#1110) Summary: For python-3.10, support type annotations in component fn arguments using builtin `dict`, `list`, `tuple` types and `|` for Optional types. Allows component fn to be typed as: ``` def foo(env: dict[str, str] | None): pass ``` versus ``` from typing import Dict, Optional def foo(env: Optional[Dict[str, str]]): pass ``` Reviewed By: highker Differential Revision: D81826386
71a840d to
8d79d3a
Compare
…for optional types and builtin container types. (#1110) Summary: For python-3.10, support type annotations in component fn arguments using builtin `dict`, `list`, `tuple` types and `|` for Optional types. Allows component fn to be typed as: ``` def foo(env: dict[str, str] | None): pass ``` versus ``` from typing import Dict, Optional def foo(env: Optional[Dict[str, str]]): pass ``` Reviewed By: highker Differential Revision: D81826386
8d79d3a to
a492880
Compare
|
This pull request was exported from Phabricator. Differential Revision: D81826386 |
…for optional types and builtin container types. (#1110) Summary: Pull Request resolved: #1110 For python-3.10, support type annotations in component fn arguments using builtin `dict`, `list`, `tuple` types and `|` for Optional types. Allows component fn to be typed as: ``` def foo(env: dict[str, str] | None): pass ``` versus ``` from typing import Dict, Optional def foo(env: Optional[Dict[str, str]]): pass ``` Reviewed By: highker Differential Revision: D81826386
a492880 to
5a5c561
Compare
…for optional types and builtin container types. (#1110) Summary: Pull Request resolved: #1110 For python-3.10, support type annotations in component fn arguments using builtin `dict`, `list`, `tuple` types and `|` for Optional types. Allows component fn to be typed as: ``` def foo(env: dict[str, str] | None): pass ``` versus ``` from typing import Dict, Optional def foo(env: Optional[Dict[str, str]]): pass ``` Reviewed By: highker Differential Revision: D81826386
|
This pull request was exported from Phabricator. Differential Revision: D81826386 |
5a5c561 to
37ed313
Compare
Summary:
For python-3.10, support type annotations in component fn arguments using builtin
dict,list,tupletypes and|for Optional types.Allows component fn to be typed as:
versus
Reviewed By: highker
Differential Revision: D81826386