Skip to content

Commit

Permalink
đź“ť Updated the docs to note the Union[X, None] and X | None support (
Browse files Browse the repository at this point in the history
  • Loading branch information
Luttik authored Oct 5, 2021
1 parent 9eddc04 commit 3f904c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,11 @@ After installing you can run auto-optional using `auto-optional [path]` (path is

### Things that are handled well

- The alternatives to `Optional` are supported, that means both;
- `Union[X, None]`
- `x | None` (allowed since python 10+).
- Existing imports are reused.
- `import as` statements are properly handled.
- `import as` and `from typing import ...` statements are properly handled.

### Things that need improvement
For all these points you can leave a thumbs-up if you want it. Also, I welcome pull-requests for these issues.
Expand Down
7 changes: 5 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Auto-optional
<img src="https://raw.githubusercontent.com/Luttik/auto-optional/main/docs/assets/images/logo-with-text.svg" style="width: 100%; margin: 32pt 0" alt="Logo">
<img src="/assets/images/logo-with-text.svg" style="width: 100%; margin: 32pt 0" alt="Logo">


<p align="center">
Expand Down Expand Up @@ -78,8 +78,11 @@ After installing you can run auto-optional using `auto-optional [path]` (path is

### Things that are handled well

- The alternatives to `Optional` are supported, that means both;
- `Union[X, None]`
- `x | None` (allowed since python 10+).
- Existing imports are reused.
- `import as` statements are properly handled.
- `import as` and `from typing import ...` statements are properly handled.

### Things that need improvement
For all these points you can leave a thumbs-up if you want it. Also, I welcome pull-requests for these issues.
Expand Down

0 comments on commit 3f904c3

Please sign in to comment.