Skip to content

Commit 2874924

Browse files
authored
Drop Python 2 support (#29)
Mypy has dropped Python 2 support some time ago, and maintaining Python 2 support is getting too complicated for little benefit.
1 parent 1c3f2ed commit 2874924

File tree

4 files changed

+2
-13
lines changed

4 files changed

+2
-13
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ env:
99

1010
jobs:
1111
include:
12-
- python: 2.7
13-
- python: 3.4
1412
- python: 3.5.0
1513
- python: 3.5.1
1614
- python: 3.5.2

mypy_extensions.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
from typing import Any
99

10-
# NOTE: This module must support Python 2.7 in addition to Python 3.x
11-
1210
import sys
1311
# _type_check is NOT a part of public typing API, it is used here only to mimic
1412
# the (convenient) behavior of types provided by typing module.
@@ -98,7 +96,7 @@ class Point2D(TypedDict):
9896
label: str
9997
10098
The latter syntax is only supported in Python 3.6+, while two other
101-
syntax forms work for Python 2.7 and 3.2+
99+
syntax forms work for 3.2+
102100
"""
103101

104102
# Argument constructors for making more-detailed Callables. These all just

setup.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# NOTE: This package must support Python 2.7 in addition to Python 3.x
2-
31
from setuptools import setup
42

53
version = '0.5.0-dev'
@@ -17,8 +15,6 @@
1715
'Environment :: Console',
1816
'Intended Audience :: Developers',
1917
'License :: OSI Approved :: MIT License',
20-
'Programming Language :: Python :: 2',
21-
'Programming Language :: Python :: 2.7',
2218
'Programming Language :: Python :: 3',
2319
'Programming Language :: Python :: 3.5',
2420
'Programming Language :: Python :: 3.6',
@@ -41,7 +37,4 @@
4137
license='MIT License',
4238
py_modules=['mypy_extensions'],
4339
classifiers=classifiers,
44-
install_requires=[
45-
'typing >= 3.5.3; python_version < "3.5"',
46-
],
4740
)

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
minversion = 2.9.1
33
skip_missing_interpreters = true
4-
envlist = py27, py35, py36, py37, py38, py39, py310, py311
4+
envlist = py35, py36, py37, py38, py39, py310, py311
55

66
[testenv]
77
description = run the test driver with {basepython}

0 commit comments

Comments
 (0)