Skip to content
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

Project import generated by Copybara. #697

Merged
merged 1 commit into from
Jun 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions pyguide.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,11 @@ package twice.

Exemptions from this rule:

* Classes imported from the [`typing` module](#typing-imports).
* Classes imported from the [`collections.abc` module](#typing-imports).
* Classes imported from the
[`typing_extensions` module](https://github.com/python/typing/tree/HEAD/typing_extensions).
* Symbols from the following modules and used to support static analysis and
type checking:
* [`typing` module](#typing-imports)
* [`collections.abc` module](#typing-imports)
* [`typing_extensions` module](https://github.com/python/typing_extensions/blob/main/README.md)
* Redirects from the
[six.moves module](https://six.readthedocs.io/#module-six.moves).

Expand Down Expand Up @@ -2543,9 +2544,10 @@ Imports should be on separate lines; there are
E.g.:

```python
Yes: import os
Yes: from collections.abc import Mapping, Sequence
import os
import sys
from typing import Mapping, Sequence
from typing import Any, NewType
```

```python
Expand Down Expand Up @@ -3171,6 +3173,8 @@ CapWorded. If the alias is used only in this module, it should be \_Private.
For example, if the name of the module together with the name of the type is too
long:

<!-- Annotate below with `typing.TypeAlias` for 3.10. -->

```python
_ShortName = module_with_long_name.TypeWithLongName
ComplexMap = Mapping[str, list[tuple[int, int]]]
Expand Down