Skip to content
Closed
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,16 @@ With `--py36-plus` and higher, `reorder-python-imports` will also rewrite
+from typing import TypedDict
```

## Rewriting `async_timeout` imports

With `--py311-plus` and higher, `reorder-python-imports` will also rewrite
`async_timeout` imports which moved to `asyncio`.

```diff
-from async_timeout import timeout
+from asyncio import timeout
```

## Rewriting pep 585 typing imports

With `--py39-plus` and higher, `reorder-python-imports` will replace imports
Expand Down
2 changes: 2 additions & 0 deletions reorder_python_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,8 @@ def _fix_file(
'typing_extensions=typing:is_typeddict',
))
REPLACES[(3, 11)].update((
'async_timeout=asyncio:timeout',
'async_timeout=asyncio:timeout_at',
'typing_extensions=typing:Any',
'typing_extensions=typing:LiteralString',
'typing_extensions=typing:Never',
Expand Down
Loading