Skip to content

Commit 3d6389b

Browse files
committed
Drop support for Python 3.10
1 parent c1f4c33 commit 3d6389b

File tree

5 files changed

+6
-34
lines changed

5 files changed

+6
-34
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
python-version:
18-
- "3.10"
1918
- "3.11"
2019
- "3.12"
2120
- "3.13"
22-
- "pypy-3.10"
21+
- "pypy-3.11"
2322
steps:
2423
- uses: actions/checkout@v5
2524
with:

bpython/_typing_compat.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

bpython/args.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# The MIT License
22
#
33
# Copyright (c) 2008 Bob Farrell
4-
# Copyright (c) 2012-2021 Sebastian Ramacher
4+
# Copyright (c) 2012-2025 Sebastian Ramacher
55
#
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
77
# of this software and associated documentation files (the "Software"), to deal
@@ -38,11 +38,11 @@
3838
from pathlib import Path
3939
from collections.abc import Callable
4040
from types import ModuleType
41+
from typing import Never
4142

4243
from . import __version__, __copyright__
4344
from .config import default_config_path, Config
4445
from .translations import _
45-
from ._typing_compat import Never
4646

4747
logger = logging.getLogger(__name__)
4848

@@ -52,7 +52,7 @@ class ArgumentParserFailed(ValueError):
5252

5353

5454
class RaisingArgumentParser(argparse.ArgumentParser):
55-
def error(self, msg: str) -> Never:
55+
def error(self, message: str) -> Never:
5656
raise ArgumentParserFailed()
5757

5858

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[tool.black]
66
line-length = 80
7-
target_version = ["py310"]
7+
target_version = ["py311"]
88
include = '\.pyi?$'
99
exclude = '''
1010
/(

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ classifiers =
1515
Programming Language :: Python :: 3
1616

1717
[options]
18-
python_requires = >=3.10
18+
python_requires = >=3.11
1919
packages =
2020
bpython
2121
bpython.curtsiesfrontend

0 commit comments

Comments
 (0)