typing-protocol-intersection 0.4.0__tar.gz → 0.4.2__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.4.0 → typing_protocol_intersection-0.4.2}/PKG-INFO +2 -2
- {typing-protocol-intersection-0.4.0 → typing_protocol_intersection-0.4.2}/README.md +1 -1
- {typing-protocol-intersection-0.4.0 → typing_protocol_intersection-0.4.2}/setup.cfg +1 -1
- {typing-protocol-intersection-0.4.0 → typing_protocol_intersection-0.4.2}/tests/test_mypy_plugin.py +4 -1
- {typing-protocol-intersection-0.4.0 → typing_protocol_intersection-0.4.2}/typing_protocol_intersection/mypy_plugin.py +1 -1
- {typing-protocol-intersection-0.4.0 → typing_protocol_intersection-0.4.2}/typing_protocol_intersection.egg-info/PKG-INFO +2 -2
- {typing-protocol-intersection-0.4.0 → typing_protocol_intersection-0.4.2}/LICENSE +0 -0
- {typing-protocol-intersection-0.4.0 → typing_protocol_intersection-0.4.2}/pyproject.toml +0 -0
- {typing-protocol-intersection-0.4.0 → typing_protocol_intersection-0.4.2}/tests/test_python_module.py +0 -0
- {typing-protocol-intersection-0.4.0 → typing_protocol_intersection-0.4.2}/typing_protocol_intersection/__init__.py +0 -0
- {typing-protocol-intersection-0.4.0 → typing_protocol_intersection-0.4.2}/typing_protocol_intersection/py.typed +0 -0
- {typing-protocol-intersection-0.4.0 → typing_protocol_intersection-0.4.2}/typing_protocol_intersection/types.py +0 -0
- {typing-protocol-intersection-0.4.0 → typing_protocol_intersection-0.4.2}/typing_protocol_intersection.egg-info/SOURCES.txt +0 -0
- {typing-protocol-intersection-0.4.0 → typing_protocol_intersection-0.4.2}/typing_protocol_intersection.egg-info/dependency_links.txt +0 -0
- {typing-protocol-intersection-0.4.0 → typing_protocol_intersection-0.4.2}/typing_protocol_intersection.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: typing-protocol-intersection
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
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
|
|
@@ -31,7 +31,7 @@ See the [examples](#examples) section below.
|
|
|
31
31
|
|
|
32
32
|
## Supported versions
|
|
33
33
|
|
|
34
|
-
The plugin supports python 3.8 up to 3.12 and mypy >= 0.920 and <= 1.
|
|
34
|
+
The plugin supports python 3.8 up to 3.12 and mypy >= 0.920 and <= 1.11.x.
|
|
35
35
|
|
|
36
36
|
## Installation
|
|
37
37
|
|
{typing-protocol-intersection-0.4.0 → typing_protocol_intersection-0.4.2}/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.12.0", id="1.12.0 - first greater than 1.11.x with breaking changes"),
|
|
108
108
|
],
|
|
109
109
|
)
|
|
110
110
|
def test_raises_for_unsupported_mypy_versions(version: str) -> None:
|
|
@@ -128,6 +128,9 @@ def test_raises_for_unsupported_mypy_versions(version: str) -> None:
|
|
|
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
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"),
|
|
132
|
+
pytest.param("1.11.0", id="1.11.0 - some 1.11.x version"),
|
|
133
|
+
pytest.param("1.11.0", id="1.11.0 - some 1.11.x version"),
|
|
131
134
|
],
|
|
132
135
|
)
|
|
133
136
|
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, 12, 0)
|
|
215
215
|
):
|
|
216
216
|
return ProtocolIntersectionPlugin
|
|
217
217
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: typing-protocol-intersection
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
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
|
|
@@ -31,7 +31,7 @@ See the [examples](#examples) section below.
|
|
|
31
31
|
|
|
32
32
|
## Supported versions
|
|
33
33
|
|
|
34
|
-
The plugin supports python 3.8 up to 3.12 and mypy >= 0.920 and <= 1.
|
|
34
|
+
The plugin supports python 3.8 up to 3.12 and mypy >= 0.920 and <= 1.11.x.
|
|
35
35
|
|
|
36
36
|
## Installation
|
|
37
37
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|