| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 18608e4 commit 1f290f1
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,4 +8,4 @@ pytest-cov | |||
| 8 | 8 | pytest-instafail | |
| 9 | 9 | pytest-mock | |
| 10 | 10 | pytest-sugar | |
| 11 | - typing-extensions | ||
| 11 | + typing-extensions ; python_version < "3.11" | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,8 +9,14 @@ | |||
| 9 | 9 | """ | |
| 10 | 10 | ||
| 11 | 11 | import itertools | |
| 12 | + import sys | ||
| 12 | 13 | from typing import Type | |
| 13 | 14 | ||
| 15 | + if sys.version_info >= (3, 11): | ||
| 16 | + from typing import assert_type | ||
| 17 | + else: | ||
| 18 | + from typing_extensions import assert_type | ||
| 19 | + | ||
| 14 | 20 | import pytest | |
| 15 | 21 | from typing_extensions import assert_type | |
| 16 | 22 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments