File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,8 +78,11 @@ After installing you can run auto-optional using `auto-optional [path]` (path is
7878
7979### Things that are handled well
8080
81+ - The alternatives to ` Optional ` are supported, that means both;
82+ - ` Union[X, None] `
83+ - ` x | None ` (allowed since python 10+).
8184- Existing imports are reused.
82- - ` import as ` statements are properly handled.
85+ - ` import as ` and ` from typing import ... ` statements are properly handled.
8386
8487### Things that need improvement
8588For all these points you can leave a thumbs-up if you want it. Also, I welcome pull-requests for these issues.
Original file line number Diff line number Diff line change 11# Auto-optional
2- <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 " >
2+ <img src =" /assets/images/logo-with-text.svg " style =" width : 100% ; margin : 32pt 0 " alt =" Logo " >
33
44
55<p align =" center " >
@@ -78,8 +78,11 @@ After installing you can run auto-optional using `auto-optional [path]` (path is
7878
7979### Things that are handled well
8080
81+ - The alternatives to ` Optional ` are supported, that means both;
82+ - ` Union[X, None] `
83+ - ` x | None ` (allowed since python 10+).
8184- Existing imports are reused.
82- - ` import as ` statements are properly handled.
85+ - ` import as ` and ` from typing import ... ` statements are properly handled.
8386
8487### Things that need improvement
8588For all these points you can leave a thumbs-up if you want it. Also, I welcome pull-requests for these issues.
You can’t perform that action at this time.
0 commit comments