typing-protocol-intersection 0.3.10__tar.gz → 0.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {typing-protocol-intersection-0.3.10 → typing_protocol_intersection-0.4.1}/PKG-INFO +3 -4
- {typing-protocol-intersection-0.3.10 → typing_protocol_intersection-0.4.1}/README.md +1 -1
- {typing-protocol-intersection-0.3.10 → typing_protocol_intersection-0.4.1}/pyproject.toml +2 -3
- {typing-protocol-intersection-0.3.10 → typing_protocol_intersection-0.4.1}/setup.cfg +2 -3
- {typing-protocol-intersection-0.3.10 → typing_protocol_intersection-0.4.1}/tests/test_mypy_plugin.py +3 -1
- {typing-protocol-intersection-0.3.10 → typing_protocol_intersection-0.4.1}/typing_protocol_intersection/mypy_plugin.py +1 -1
- {typing-protocol-intersection-0.3.10 → typing_protocol_intersection-0.4.1}/typing_protocol_intersection.egg-info/PKG-INFO +3 -4
- {typing-protocol-intersection-0.3.10 → typing_protocol_intersection-0.4.1}/LICENSE +0 -0
- {typing-protocol-intersection-0.3.10 → typing_protocol_intersection-0.4.1}/tests/test_python_module.py +0 -0
- {typing-protocol-intersection-0.3.10 → typing_protocol_intersection-0.4.1}/typing_protocol_intersection/__init__.py +0 -0
- {typing-protocol-intersection-0.3.10 → typing_protocol_intersection-0.4.1}/typing_protocol_intersection/py.typed +0 -0
- {typing-protocol-intersection-0.3.10 → typing_protocol_intersection-0.4.1}/typing_protocol_intersection/types.py +0 -0
- {typing-protocol-intersection-0.3.10 → typing_protocol_intersection-0.4.1}/typing_protocol_intersection.egg-info/SOURCES.txt +0 -0
- {typing-protocol-intersection-0.3.10 → typing_protocol_intersection-0.4.1}/typing_protocol_intersection.egg-info/dependency_links.txt +0 -0
- {typing-protocol-intersection-0.3.10 → typing_protocol_intersection-0.4.1}/typing_protocol_intersection.egg-info/top_level.txt +0 -0
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: typing-protocol-intersection
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: Protocol intersection for mypy
|
|
5
5
|
Home-page: https://github.com/klausweiss/typing-protocol-intersection
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/klausweiss/typing-protocol-intersection/issues
|
|
7
7
|
Classifier: Programming Language :: Python :: 3
|
|
8
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
9
8
|
Classifier: Programming Language :: Python :: 3.8
|
|
10
9
|
Classifier: Programming Language :: Python :: 3.9
|
|
11
10
|
Classifier: Programming Language :: Python :: 3.10
|
|
@@ -14,7 +13,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
14
13
|
Classifier: Typing :: Typed
|
|
15
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
16
15
|
Classifier: Operating System :: OS Independent
|
|
17
|
-
Requires-Python: >=3.
|
|
16
|
+
Requires-Python: >=3.8
|
|
18
17
|
Description-Content-Type: text/markdown
|
|
19
18
|
License-File: LICENSE
|
|
20
19
|
|
|
@@ -32,7 +31,7 @@ See the [examples](#examples) section below.
|
|
|
32
31
|
|
|
33
32
|
## Supported versions
|
|
34
33
|
|
|
35
|
-
The plugin supports python 3.
|
|
34
|
+
The plugin supports python 3.8 up to 3.12 and mypy >= 0.920 and <= 1.10.x.
|
|
36
35
|
|
|
37
36
|
## Installation
|
|
38
37
|
|
|
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
|
|
|
7
7
|
|
|
8
8
|
[tool.black]
|
|
9
9
|
line-length = 120
|
|
10
|
-
target-version = ['
|
|
10
|
+
target-version = ['py38']
|
|
11
11
|
include = '\.pyi?$'
|
|
12
12
|
|
|
13
13
|
[tool.isort]
|
|
@@ -52,7 +52,7 @@ disable = """
|
|
|
52
52
|
[tool.tox]
|
|
53
53
|
legacy_tox_ini = """
|
|
54
54
|
[tox]
|
|
55
|
-
envlist = py{
|
|
55
|
+
envlist = py{38,39,310,311,312}-mypy{,0920}
|
|
56
56
|
isolated_build = true
|
|
57
57
|
|
|
58
58
|
[testenv]
|
|
@@ -86,7 +86,6 @@ deps =
|
|
|
86
86
|
|
|
87
87
|
[gh-actions]
|
|
88
88
|
python =
|
|
89
|
-
3.7: py37
|
|
90
89
|
3.8: py38
|
|
91
90
|
3.9: py39
|
|
92
91
|
3.10: py310
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = typing-protocol-intersection
|
|
3
|
-
version = 0.
|
|
3
|
+
version = 0.4.1
|
|
4
4
|
description = Protocol intersection for mypy
|
|
5
5
|
long_description = file: README.md
|
|
6
6
|
long_description_content_type = text/markdown
|
|
@@ -9,7 +9,6 @@ project_urls =
|
|
|
9
9
|
Bug Tracker = https://github.com/klausweiss/typing-protocol-intersection/issues
|
|
10
10
|
classifiers =
|
|
11
11
|
Programming Language :: Python :: 3
|
|
12
|
-
Programming Language :: Python :: 3.7
|
|
13
12
|
Programming Language :: Python :: 3.8
|
|
14
13
|
Programming Language :: Python :: 3.9
|
|
15
14
|
Programming Language :: Python :: 3.10
|
|
@@ -23,7 +22,7 @@ classifiers =
|
|
|
23
22
|
package_dir =
|
|
24
23
|
= .
|
|
25
24
|
packages = find:
|
|
26
|
-
python_requires = >=3.
|
|
25
|
+
python_requires = >=3.8
|
|
27
26
|
|
|
28
27
|
[options.package_data]
|
|
29
28
|
* = py.typed, *.pyi
|
{typing-protocol-intersection-0.3.10 → typing_protocol_intersection-0.4.1}/tests/test_mypy_plugin.py
RENAMED
|
@@ -104,7 +104,7 @@ def test_mypy_plugin(testcase_file: _TestCase, run_mypy):
|
|
|
104
104
|
[
|
|
105
105
|
pytest.param("0.910", id="0.910 - before the first supported 0.920"),
|
|
106
106
|
pytest.param("0.992", id="0.992 - non-existent version greater than the last tested 0.x"),
|
|
107
|
-
pytest.param("1.
|
|
107
|
+
pytest.param("1.11.0", id="1.11.0 - first greater than 1.10.x with breaking changes"),
|
|
108
108
|
],
|
|
109
109
|
)
|
|
110
110
|
def test_raises_for_unsupported_mypy_versions(version: str) -> None:
|
|
@@ -127,6 +127,8 @@ def test_raises_for_unsupported_mypy_versions(version: str) -> None:
|
|
|
127
127
|
pytest.param("1.6.0", id="1.6.0 - some 1.6.x version"),
|
|
128
128
|
pytest.param("1.7.0", id="1.7.0 - some 1.7.x version"),
|
|
129
129
|
pytest.param("1.8.0", id="1.8.0 - some 1.8.x version"),
|
|
130
|
+
pytest.param("1.9.0", id="1.9.0 - some 1.9.x version"),
|
|
131
|
+
pytest.param("1.10.0", id="1.10.0 - some 1.10.x version"),
|
|
130
132
|
],
|
|
131
133
|
)
|
|
132
134
|
def test_initializes_for_supported_mypy_versions(version: str) -> None:
|
|
@@ -211,7 +211,7 @@ def plugin(version: str) -> typing.Type[mypy.plugin.Plugin]:
|
|
|
211
211
|
numeric_prefixes = (_numeric_prefix(x) for x in version_prefix.split("."))
|
|
212
212
|
parted_version = tuple(int(prefix) if prefix else None for prefix in numeric_prefixes)
|
|
213
213
|
if (len(parted_version) == 2 and (0, 920) <= parted_version <= (0, 991)) or (
|
|
214
|
-
len(parted_version) == 3 and (1, 0, 0) <= parted_version < (1,
|
|
214
|
+
len(parted_version) == 3 and (1, 0, 0) <= parted_version < (1, 11, 0)
|
|
215
215
|
):
|
|
216
216
|
return ProtocolIntersectionPlugin
|
|
217
217
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: typing-protocol-intersection
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: Protocol intersection for mypy
|
|
5
5
|
Home-page: https://github.com/klausweiss/typing-protocol-intersection
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/klausweiss/typing-protocol-intersection/issues
|
|
7
7
|
Classifier: Programming Language :: Python :: 3
|
|
8
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
9
8
|
Classifier: Programming Language :: Python :: 3.8
|
|
10
9
|
Classifier: Programming Language :: Python :: 3.9
|
|
11
10
|
Classifier: Programming Language :: Python :: 3.10
|
|
@@ -14,7 +13,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
14
13
|
Classifier: Typing :: Typed
|
|
15
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
16
15
|
Classifier: Operating System :: OS Independent
|
|
17
|
-
Requires-Python: >=3.
|
|
16
|
+
Requires-Python: >=3.8
|
|
18
17
|
Description-Content-Type: text/markdown
|
|
19
18
|
License-File: LICENSE
|
|
20
19
|
|
|
@@ -32,7 +31,7 @@ See the [examples](#examples) section below.
|
|
|
32
31
|
|
|
33
32
|
## Supported versions
|
|
34
33
|
|
|
35
|
-
The plugin supports python 3.
|
|
34
|
+
The plugin supports python 3.8 up to 3.12 and mypy >= 0.920 and <= 1.10.x.
|
|
36
35
|
|
|
37
36
|
## Installation
|
|
38
37
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|