From 739a1ba7ecc01cec69e6d76f619a690405d98534 Mon Sep 17 00:00:00 2001 From: Max R Date: Sat, 28 Dec 2024 10:00:51 -0500 Subject: [PATCH] Add another README example for "non-whitespace non-comment lines will be ignored" Adding a documented example for this case since it confused me until I read the docs more closely --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 0367bca..34338d0 100644 --- a/README.md +++ b/README.md @@ -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