typing-protocol-intersection 0.3.2__tar.gz → 0.3.4__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.
Files changed (15) hide show
  1. {typing-protocol-intersection-0.3.2 → typing-protocol-intersection-0.3.4}/PKG-INFO +2 -2
  2. {typing-protocol-intersection-0.3.2 → typing-protocol-intersection-0.3.4}/README.md +1 -1
  3. {typing-protocol-intersection-0.3.2 → typing-protocol-intersection-0.3.4}/setup.cfg +1 -1
  4. {typing-protocol-intersection-0.3.2 → typing-protocol-intersection-0.3.4}/tests/test_mypy_plugin.py +3 -1
  5. {typing-protocol-intersection-0.3.2 → typing-protocol-intersection-0.3.4}/typing_protocol_intersection/mypy_plugin.py +1 -1
  6. {typing-protocol-intersection-0.3.2 → typing-protocol-intersection-0.3.4}/typing_protocol_intersection.egg-info/PKG-INFO +2 -2
  7. {typing-protocol-intersection-0.3.2 → typing-protocol-intersection-0.3.4}/LICENSE +0 -0
  8. {typing-protocol-intersection-0.3.2 → typing-protocol-intersection-0.3.4}/pyproject.toml +0 -0
  9. {typing-protocol-intersection-0.3.2 → typing-protocol-intersection-0.3.4}/tests/test_python_module.py +0 -0
  10. {typing-protocol-intersection-0.3.2 → typing-protocol-intersection-0.3.4}/typing_protocol_intersection/__init__.py +0 -0
  11. {typing-protocol-intersection-0.3.2 → typing-protocol-intersection-0.3.4}/typing_protocol_intersection/py.typed +0 -0
  12. {typing-protocol-intersection-0.3.2 → typing-protocol-intersection-0.3.4}/typing_protocol_intersection/types.py +0 -0
  13. {typing-protocol-intersection-0.3.2 → typing-protocol-intersection-0.3.4}/typing_protocol_intersection.egg-info/SOURCES.txt +0 -0
  14. {typing-protocol-intersection-0.3.2 → typing-protocol-intersection-0.3.4}/typing_protocol_intersection.egg-info/dependency_links.txt +0 -0
  15. {typing-protocol-intersection-0.3.2 → typing-protocol-intersection-0.3.4}/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.3.2
3
+ Version: 0.3.4
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.7, 3.8, 3.9, 3.10 and 3.11 and mypy >= 0.920 and <= 1.2.x.
34
+ The plugin supports python 3.7, 3.8, 3.9, 3.10 and 3.11 and mypy >= 0.920 and <= 1.4.x.
35
35
 
36
36
  ## Installation
37
37
 
@@ -12,7 +12,7 @@ See the [examples](#examples) section below.
12
12
 
13
13
  ## Supported versions
14
14
 
15
- The plugin supports python 3.7, 3.8, 3.9, 3.10 and 3.11 and mypy >= 0.920 and <= 1.2.x.
15
+ The plugin supports python 3.7, 3.8, 3.9, 3.10 and 3.11 and mypy >= 0.920 and <= 1.4.x.
16
16
 
17
17
  ## Installation
18
18
 
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = typing-protocol-intersection
3
- version = 0.3.2
3
+ version = 0.3.4
4
4
  description = Protocol intersection for mypy
5
5
  long_description = file: README.md
6
6
  long_description_content_type = text/markdown
@@ -124,7 +124,7 @@ def _strip(string: str) -> str:
124
124
  [
125
125
  pytest.param("0.910", id="0.910 - before the first supported 0.920"),
126
126
  pytest.param("0.992", id="0.992 - non-existent version greater than the last tested 0.x"),
127
- pytest.param("1.3.0", id="1.3.0 - first greater than 1.2.x with breaking changes"),
127
+ pytest.param("1.5.0", id="1.5.0 - first greater than 1.4.x with breaking changes"),
128
128
  ],
129
129
  )
130
130
  def test_raises_for_unsupported_mypy_versions(version: str) -> None:
@@ -141,6 +141,8 @@ def test_raises_for_unsupported_mypy_versions(version: str) -> None:
141
141
  pytest.param("1.0.100", id="1.0.100 - some other 1.0.x version"),
142
142
  pytest.param("1.1.1", id="1.1.1 - some 1.1.x version"),
143
143
  pytest.param("1.2.0", id="1.2.0 - some 1.2.x version"),
144
+ pytest.param("1.3.0", id="1.3.0 - some 1.3.x version"),
145
+ pytest.param("1.4.0", id="1.4.0 - some 1.4.x version"),
144
146
  ],
145
147
  )
146
148
  def test_initializes_for_supported_mypy_versions(version: str) -> None:
@@ -193,7 +193,7 @@ def plugin(version: str) -> typing.Type[mypy.plugin.Plugin]:
193
193
  numeric_prefixes = (_numeric_prefix(x) for x in version_prefix.split("."))
194
194
  parted_version = tuple(int(prefix) if prefix else None for prefix in numeric_prefixes)
195
195
  if (len(parted_version) == 2 and (0, 920) <= parted_version <= (0, 991)) or (
196
- len(parted_version) == 3 and (1, 0, 0) <= parted_version < (1, 3, 0)
196
+ len(parted_version) == 3 and (1, 0, 0) <= parted_version < (1, 5, 0)
197
197
  ):
198
198
  return ProtocolIntersectionPlugin
199
199
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: typing-protocol-intersection
3
- Version: 0.3.2
3
+ Version: 0.3.4
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.7, 3.8, 3.9, 3.10 and 3.11 and mypy >= 0.920 and <= 1.2.x.
34
+ The plugin supports python 3.7, 3.8, 3.9, 3.10 and 3.11 and mypy >= 0.920 and <= 1.4.x.
35
35
 
36
36
  ## Installation
37
37