Skip to content

Commit 63209fc

Browse files
authored
Pin Mypy to <1.7.0 (#306):
Temporarily fixes #305. Specifically, this error is being caused by this line: https://github.com/python/mypy/blob/e4355948d797600c7b76da0a916fc5f29d10448e/mypy/traverser.py#L97 Because `TraverserVisitor` now is a `trait` you cannot extend from it. There doesn't seem to be a way to get around this on my end, so I'm pinning Mypy as a workaround until I find a solution or something changes upstream with Mypy.
1 parent b5f9f11 commit 63209fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "refurb"
3-
version = "1.22.2"
3+
version = "1.23.0"
44
description = "A tool for refurbish and modernize Python codebases"
55
authors = ["dosisod"]
66
license = "GPL-3.0-only"
@@ -17,7 +17,7 @@ classifiers = [
1717

1818
[tool.poetry.dependencies]
1919
python = ">=3.10"
20-
mypy = ">=0.981"
20+
mypy = ">=0.981,<1.7.0"
2121
tomli = {version = "^2.0.1", python = "<3.11"}
2222

2323
[tool.poetry.dev-dependencies]

0 commit comments

Comments
 (0)