Skip to content

Commit

Permalink
Drop Python 2 support (#29)
Browse files Browse the repository at this point in the history
Mypy has dropped Python 2 support some time ago, and maintaining
Python 2 support is getting too complicated for little benefit.
  • Loading branch information
JukkaL authored Jan 29, 2023
1 parent 1c3f2ed commit 2874924
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ env:

jobs:
include:
- python: 2.7
- python: 3.4
- python: 3.5.0
- python: 3.5.1
- python: 3.5.2
Expand Down
4 changes: 1 addition & 3 deletions mypy_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

from typing import Any

# NOTE: This module must support Python 2.7 in addition to Python 3.x

import sys
# _type_check is NOT a part of public typing API, it is used here only to mimic
# the (convenient) behavior of types provided by typing module.
Expand Down Expand Up @@ -98,7 +96,7 @@ class Point2D(TypedDict):
label: str
The latter syntax is only supported in Python 3.6+, while two other
syntax forms work for Python 2.7 and 3.2+
syntax forms work for 3.2+
"""

# Argument constructors for making more-detailed Callables. These all just
Expand Down
7 changes: 0 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# NOTE: This package must support Python 2.7 in addition to Python 3.x

from setuptools import setup

version = '0.5.0-dev'
Expand All @@ -17,8 +15,6 @@
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
Expand All @@ -41,7 +37,4 @@
license='MIT License',
py_modules=['mypy_extensions'],
classifiers=classifiers,
install_requires=[
'typing >= 3.5.3; python_version < "3.5"',
],
)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
minversion = 2.9.1
skip_missing_interpreters = true
envlist = py27, py35, py36, py37, py38, py39, py310, py311
envlist = py35, py36, py37, py38, py39, py310, py311

[testenv]
description = run the test driver with {basepython}
Expand Down

0 comments on commit 2874924

Please sign in to comment.