Update doc as relative import can be used with star import (GH-25667) (GH-26121)

(cherry picked from commit 3d4b5f1019)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
This commit is contained in:
Miss Islington (bot) 2021-05-14 07:26:40 -07:00 committed by GitHub
parent 5abc681019
commit 8940916a02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -734,7 +734,7 @@ The :keyword:`!import` statement
: ("," `identifier` ["as" `identifier`])*
: | "from" `relative_module` "import" "(" `identifier` ["as" `identifier`]
: ("," `identifier` ["as" `identifier`])* [","] ")"
: | "from" `module` "import" "*"
: | "from" `relative_module` "import" "*"
module: (`identifier` ".")* `identifier`
relative_module: "."* `module` | "."+