Skip to content

Commit

Permalink
Add another README example for "non-whitespace non-comment lines will…
Browse files Browse the repository at this point in the history
… be ignored"

Adding a documented example for this case since it confused me until I read the docs more closely
  • Loading branch information
mxr authored Dec 28, 2024
1 parent 320a1ba commit 739a1ba
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 739a1ba

Please sign in to comment.