From 76b370b5f9c4260b171993242612c80c25420ec9 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sun, 25 Feb 2024 15:11:12 -0800 Subject: [PATCH] Remove 3.7 remnants in docs/metadata --- README.rst | 2 +- pyproject.toml | 1 - setup.py | 3 +-- tox.ini | 2 +- typeshed_client/typeshed/typing.pyi | 6 +----- 5 files changed, 4 insertions(+), 10 deletions(-) diff --git a/README.rst b/README.rst index bb32c9de..4012cc31 100644 --- a/README.rst +++ b/README.rst @@ -17,7 +17,7 @@ Projects for which ``typeshed_client`` could be useful include: Installation ------------ -``typeshed_client`` works on Python 3.7 and higher. To install it, run +``typeshed_client`` works on all supported versions of Python. To install it, run ``python3 -m pip install typeshed_client``. Finding stubs diff --git a/pyproject.toml b/pyproject.toml index 621889e4..817dd258 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,7 +58,6 @@ exclude = [ ] [tool.ruff] - line-length = 100 target-version = "py38" preview = true diff --git a/setup.py b/setup.py index c2c7dea6..f66d7e14 100644 --- a/setup.py +++ b/setup.py @@ -55,7 +55,6 @@ def find_bundled_files() -> Iterable[str]: "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", @@ -63,5 +62,5 @@ def find_bundled_files() -> Iterable[str]: "Programming Language :: Python :: 3.12", "Topic :: Software Development", ], - python_requires=">=3.7", + python_requires=">=3.8", ) diff --git a/tox.ini b/tox.ini index 9bfc066f..053cc55a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion=2.3.1 -envlist = py37,py38,py39,py310,py311,py312,black,mypy +envlist = py38,py39,py310,py311,py312,black,mypy isolated_build = True [testenv] diff --git a/typeshed_client/typeshed/typing.pyi b/typeshed_client/typeshed/typing.pyi index 5d01be53..38b1cd79 100644 --- a/typeshed_client/typeshed/typing.pyi +++ b/typeshed_client/typeshed/typing.pyi @@ -280,11 +280,7 @@ if sys.version_info >= (3, 10): class NewType: def __init__(self, name: str, tp: Any) -> None: ... - if sys.version_info >= (3, 11): - @staticmethod - def __call__(__x: _T) -> _T: ... - else: - def __call__(self, x: _T) -> _T: ... + def __call__(self, __x: _T) -> _T: ... def __or__(self, other: Any) -> _SpecialForm: ... def __ror__(self, other: Any) -> _SpecialForm: ...