Skip to content

Commit

Permalink
Update mypy to 0.910 (#2242)
Browse files Browse the repository at this point in the history
  • Loading branch information
kclowes authored Dec 14, 2021
1 parent e6cfe86 commit 869101e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions newsfragments/2242.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update mypy==0.910
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
'linter': [
"flake8==3.8.3",
"isort>=4.2.15,<4.3.5",
"mypy==0.812",
"mypy==0.910",
"types-setuptools>=57.4.4,<58",
"types-requests>=2.26.1,<3",
"types-protobuf>=3.18.2,<4",
],
'docs': [
"mock",
Expand Down
4 changes: 2 additions & 2 deletions web3/_utils/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ def __init__(
super().__init__(name, bases, namespace)

# __new__ must return a class instance
def __new__( # type: ignore
def __new__(
mcs,
name: str,
bases: Tuple[type],
namespace: Dict[str, Any],
normalizers: Optional[Dict[str, Any]] = None
) -> Type['PropertyCheckingFactory']:
) -> 'PropertyCheckingFactory':
all_bases = set(concat(base.__mro__ for base in bases))
all_keys = set(concat(base.__dict__.keys() for base in all_bases))

Expand Down

0 comments on commit 869101e

Please sign in to comment.