Skip to content

Commit 2a4fcd4

Browse files
authored
Version 1.10.1 release (#107)
* Version 1.10.1 release * Add 7.2 to the test * Fix types
1 parent e212be4 commit 2a4fcd4

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
strategy:
1515
matrix:
1616
python-version: ["3.7", "3.8", "3.9", "3.10"]
17-
pytest-version: ["~=6.2", "~=7.1"]
17+
# TODO: remove `7.1` in the next release
18+
pytest-version: ["~=6.2", "~=7.1", "~=7.2"]
1819

1920
steps:
2021
- uses: actions/checkout@v3

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# Version history
22

3+
34
## Version 1.10.1
45

56
### Bugfixes
67

8+
- Removes unused depenencies for `python < 3.7`
79
- Fixes compatibility with pytest 7.2, broken due to a private import from
810
`py._path`.
911

12+
1013
## Version 1.10.0
1114

1215
### Features

pytest_mypy_plugins/collect.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@
33
import platform
44
import sys
55
import tempfile
6-
from typing import TYPE_CHECKING, Any, Dict, Iterator, List, Mapping, Optional, Set
6+
from typing import (
7+
TYPE_CHECKING,
8+
Any,
9+
Dict,
10+
Hashable,
11+
Iterator,
12+
List,
13+
Mapping,
14+
Optional,
15+
Set,
16+
)
717

818
import pkg_resources
919
import py.path
@@ -63,7 +73,7 @@ def parse_parametrized(params: List[Mapping[str, Any]]) -> List[Mapping[str, Any
6373

6474

6575
class SafeLineLoader(yaml.SafeLoader):
66-
def construct_mapping(self, node: yaml.Node, deep: bool = False) -> None:
76+
def construct_mapping(self, node: yaml.MappingNode, deep: bool = False) -> Dict[Hashable, Any]:
6777
mapping = super().construct_mapping(node, deep=deep)
6878
# Add 1 so line numbering starts at 1
6979
starting_line = node.start_mark.line + 1

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@
1010
"pyyaml",
1111
"chevron",
1212
"regex",
13-
"dataclasses ; python_version<'3.7'",
1413
]
1514

1615
setup(
1716
name="pytest-mypy-plugins",
18-
version="1.10.0",
17+
version="1.10.1",
1918
description="pytest plugin for writing tests for mypy plugins",
2019
long_description=readme,
2120
long_description_content_type="text/markdown",
@@ -36,7 +35,6 @@
3635
classifiers=[
3736
"Development Status :: 4 - Beta",
3837
"License :: OSI Approved :: MIT License",
39-
"Programming Language :: Python :: 3.6",
4038
"Programming Language :: Python :: 3.7",
4139
"Programming Language :: Python :: 3.8",
4240
"Programming Language :: Python :: 3.9",

0 commit comments

Comments
 (0)