Skip to content

Commit

Permalink
fix: pin attrs to >=20.1.0, change imports
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Jan 15, 2022
1 parent 09c30ab commit 0696d08
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ yaml = "nitpick.plugins.yaml"
[tool.poetry.dependencies]
python = "^3.7"
flake8 = ">=3.0.0"
attrs = "*"
attrs = ">=20.1.0" # attr.define introduced in this version
tomlkit = ">=0.8.0" # SingleKey() class introduced in this version
toml = "*" # TODO: keep only tomlkit if possible, to have only one package to handle TOML
requests = "*"
Expand Down
2 changes: 1 addition & 1 deletion src/nitpick/blender.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import jmespath
import toml
import tomlkit
from attrs import define
from attr import define # type: ignore[attr-defined]
from autorepr import autorepr
from flatten_dict import flatten, unflatten
from jmespath.parser import ParsedResult
Expand Down
2 changes: 1 addition & 1 deletion src/nitpick/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Special configurations."""
from attrs import Factory, define
from attr import Factory, define # type: ignore[attr-defined]

from nitpick.typedefs import JsonDict

Expand Down

0 comments on commit 0696d08

Please sign in to comment.