-
Notifications
You must be signed in to change notification settings - Fork 25
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
[python] Convert from Optional[Foo]
to Foo|None
#3334
Closed
Labels
Comments
johnkerl
changed the title
[python] Convert from
[python] Convert from Nov 18, 2024
Optional[Foo]
to Union[Foo | None]
Optional[Foo]
to Union[Foo|None]
johnkerl
changed the title
[python] Convert from
[python] Convert from Nov 19, 2024
Optional[Foo]
to Union[Foo|None]
Optional[Foo]
to Foo|None
Note: Bruce also points out that |
mojaveazure
added a commit
that referenced
this issue
Dec 17, 2024
Convert `Optional` to [union types](https://docs.python.org/3/library/stdtypes.html#union-type) [SC-60887](https://app.shortcut.com/tiledb-inc/story/60887) resolves #3334
mojaveazure
added a commit
that referenced
this issue
Dec 17, 2024
Convert `Optional` to [union types](https://docs.python.org/3/library/stdtypes.html#union-type) [SC-60887](https://app.shortcut.com/tiledb-inc/story/60887) resolves #3334
github-actions bot
pushed a commit
that referenced
this issue
Dec 17, 2024
* [python] Convert from `Optional[Foo]` to `Foo | None` Convert `Optional` to [union types](https://docs.python.org/3/library/stdtypes.html#union-type) [SC-60887](https://app.shortcut.com/tiledb-inc/story/60887) resolves #3334 * Use union types in submodules * Use union types in tests * Use `Union[]` instead of `| None` * Use union types for top-level init files
johnkerl
pushed a commit
that referenced
this issue
Dec 18, 2024
* [python] Convert from `Optional[Foo]` to `Foo | None` Convert `Optional` to [union types](https://docs.python.org/3/library/stdtypes.html#union-type) [SC-60887](https://app.shortcut.com/tiledb-inc/story/60887) resolves #3334 * Use union types in submodules * Use union types in tests * Use `Union[]` instead of `| None` * Use union types for top-level init files Co-authored-by: Paul Hoffman <[email protected]>
@mojaveazure did you do |
mojaveazure
added a commit
to single-cell-data/SOMA
that referenced
this issue
Dec 19, 2024
Convert `Optional[]` to [union types](https://docs.python.org/3/library/stdtypes.html#union-type) in type hints [SC-61053](https://app.shortcut.com/tiledb-inc/story/61053) resolves single-cell-data/TileDB-SOMA#3334
mojaveazure
added a commit
to single-cell-data/SOMA
that referenced
this issue
Dec 19, 2024
Convert `Optional[]` to [union types](https://docs.python.org/3/library/stdtypes.html#union-type) in type hints [SC-61053](https://app.shortcut.com/tiledb-inc/story/61053) resolves single-cell-data/TileDB-SOMA#3334
Thanks @mojaveazure !! :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Per feedback by @bkmartinjr on #3304:
from __futures__ import annotations
Thus, now is a good time for us to adapt to evolving style-guide recommendations in this regard.
Also needs to be done for https://github.com/single-cell-data/SOMA
The text was updated successfully, but these errors were encountered: