Skip to content

Commit dd1146e

Browse files
committed
feat: drop python 3.8 support
1 parent 792e579 commit dd1146e

3 files changed

Lines changed: 7 additions & 11 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ authors = [
1111
]
1212
license = {text = "MIT"}
1313
readme = "README.md"
14-
requires-python = ">=3.8"
14+
requires-python = ">=3.9"
1515
dependencies = [
1616
"executing>=2.1",
1717
"typing_extensions>=4.13; python_version < '3.10'",
@@ -29,7 +29,7 @@ dev = [
2929
"pytest>=8",
3030
"pytest-cov>=5",
3131
"coverage[toml]>=7",
32-
"ipykernel>=6.29.5",
32+
"ipykernel>=6",
3333
"flake8>=5.0.4",
3434
"mypy>=1.14.1",
3535
]
@@ -54,5 +54,5 @@ strict_optional = false
5454

5555
[tool.black]
5656
line-length = 88
57-
target-version = ['py38', 'py39', 'py310', 'py311', 'py312', 'py313']
57+
target-version = ['py39', 'py310', 'py311', 'py312', 'py313']
5858
include = '\.pyi?$'

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

varname/utils.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,8 @@
108108
ArgSourceType: TypeAlias = Union[ArgSourceType, Tuple[ArgSourceType, ...]]
109109
ArgSourceType: TypeAlias = Union[ArgSourceType, Mapping[str, ArgSourceType]]
110110

111-
if sys.version_info >= (3, 8):
112-
ASSIGN_TYPES = (ast.Assign, ast.AnnAssign, ast.NamedExpr)
113-
AssignType: TypeAlias = Union[ASSIGN_TYPES] # type: ignore
114-
else: # pragma: no cover # Python < 3.8
115-
ASSIGN_TYPES = (ast.Assign, ast.AnnAssign)
116-
AssignType: TypeAlias = Union[ASSIGN_TYPES] # type: ignore
111+
ASSIGN_TYPES = (ast.Assign, ast.AnnAssign)
112+
AssignType: TypeAlias = Union[ASSIGN_TYPES] # type: ignore
117113

118114
PY311 = sys.version_info >= (3, 11)
119115
MODULE_IGNORE_ID_NAME = "__varname_ignore_id__"

0 commit comments

Comments
 (0)