Skip to content

Commit

Permalink
Version 1.10.1 release (#107)
Browse files Browse the repository at this point in the history
* Version 1.10.1 release

* Add 7.2 to the test

* Fix types
  • Loading branch information
sobolevn authored Oct 26, 2022
1 parent e212be4 commit 2a4fcd4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
pytest-version: ["~=6.2", "~=7.1"]
# TODO: remove `7.1` in the next release
pytest-version: ["~=6.2", "~=7.1", "~=7.2"]

steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# Version history


## Version 1.10.1

### Bugfixes

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


## Version 1.10.0

### Features
Expand Down
14 changes: 12 additions & 2 deletions pytest_mypy_plugins/collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@
import platform
import sys
import tempfile
from typing import TYPE_CHECKING, Any, Dict, Iterator, List, Mapping, Optional, Set
from typing import (
TYPE_CHECKING,
Any,
Dict,
Hashable,
Iterator,
List,
Mapping,
Optional,
Set,
)

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


class SafeLineLoader(yaml.SafeLoader):
def construct_mapping(self, node: yaml.Node, deep: bool = False) -> None:
def construct_mapping(self, node: yaml.MappingNode, deep: bool = False) -> Dict[Hashable, Any]:
mapping = super().construct_mapping(node, deep=deep)
# Add 1 so line numbering starts at 1
starting_line = node.start_mark.line + 1
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@
"pyyaml",
"chevron",
"regex",
"dataclasses ; python_version<'3.7'",
]

setup(
name="pytest-mypy-plugins",
version="1.10.0",
version="1.10.1",
description="pytest plugin for writing tests for mypy plugins",
long_description=readme,
long_description_content_type="text/markdown",
Expand All @@ -36,7 +35,6 @@
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
Expand Down

0 comments on commit 2a4fcd4

Please sign in to comment.