Skip to content

Commit

Permalink
chore: implement the black formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
clintval committed Oct 17, 2023
1 parent 37c7058 commit 51a8b3c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions caseless/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ def __copy__(self) -> "CaselessDict":

def __eq__(self, other: Any) -> bool:
"""Test if <other> is equal to this class instance."""
return (isinstance(other, type(self)) and hasattr(other, "__hash__")) and (
hash(self) == hash(other)
return (
isinstance(other, type(self))
and hasattr(other, "__hash__")
and hash(self) == hash(other)
and hasattr(other, "__len__")
and len(self) == len(other)
and all([key in other and other[key] == value for key, value in self.items()])
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ target-version = ["py38"]
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py38,py39,py310,py311,py312
envlist = py312,py311,py310,py39,py38
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.11: py311
3.10: py310
3.9: py39
3.8: py38
[testenv]
allowlist_externals = poetry
Expand Down

0 comments on commit 51a8b3c

Please sign in to comment.