Skip to content

Commit 605aef8

Browse files
authored
Add import sys in ExceptionGroup recommended-usage example to make self-contained (#1200)
1 parent 45d1530 commit 605aef8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/errors.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Recommended Usage
1313

1414
.. code-block:: python
1515
16+
import sys
17+
1618
if sys.version_info < (3, 11):
1719
from packaging.errors import ExceptionGroup
1820

0 commit comments

Comments
 (0)