Skip to content

Commit

Permalink
Merge pull request #401 from mxr/patch-1
Browse files Browse the repository at this point in the history
Add another README example for "non-whitespace non-comment lines will be ignored"
  • Loading branch information
asottile authored Dec 28, 2024
2 parents 320a1ba + 739a1ba commit 9a35038
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,15 @@ except ImportError:
pass
```

```python
from typing import TYPE_CHECKING

if TYPE_CHECKING:
# all these imports are after non-whitspace non-comment lines
# and will be ignored (i.e. they will remain out of order)
from collections.abc import Sequence
from collections.abc import Callable
```

```python
import sys
Expand Down

0 comments on commit 9a35038

Please sign in to comment.