Skip to content

Commit 70b60fe

Browse files
Bump Pydantic to fix mypy plugin (#619)
1 parent 1cc9eed commit 70b60fe

File tree

14 files changed

+139
-126
lines changed

14 files changed

+139
-126
lines changed

poetry.lock

Lines changed: 108 additions & 97 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ python = ">=3.10,<3.11"
3232

3333
asyncpg = "0.27.0"
3434
datamodel-code-generator = "0.17.1"
35-
pydantic = "1.10.5"
35+
pydantic = "1.10.6"
3636
pysignalr = "0.1.2"
3737
tortoise-orm = "0.19.3"
3838

requirements.dev.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jsonschema-spec==0.1.3 ; python_version >= "3.10" and python_version < "3.11"
4141
jsonschema==4.17.3 ; python_version >= "3.10" and python_version < "3.11"
4242
lazy-object-proxy==1.9.0 ; python_version >= "3.10" and python_version < "3.11"
4343
markupsafe==2.1.2 ; python_version >= "3.10" and python_version < "3.11"
44-
msgpack==1.0.4 ; python_version >= "3.10" and python_version < "3.11"
44+
msgpack==1.0.5 ; python_version >= "3.10" and python_version < "3.11"
4545
multidict==6.0.4 ; python_version >= "3.10" and python_version < "3.11"
4646
mypy-extensions==1.0.0 ; python_version >= "3.10" and python_version < "3.11"
4747
mypy==1.1.1 ; python_version >= "3.10" and python_version < "3.11"
@@ -55,8 +55,8 @@ platformdirs==3.1.0 ; python_version >= "3.10" and python_version < "3.11"
5555
pluggy==1.0.0 ; python_version >= "3.10" and python_version < "3.11"
5656
prance==0.22.2.22.0 ; python_version >= "3.10" and python_version < "3.11"
5757
prometheus-client==0.14.1 ; python_version >= "3.10" and python_version < "3.11"
58-
pydantic==1.10.5 ; python_version >= "3.10" and python_version < "3.11"
59-
pydantic[email]==1.10.5 ; python_version >= "3.10" and python_version < "3.11"
58+
pydantic==1.10.6 ; python_version >= "3.10" and python_version < "3.11"
59+
pydantic[email]==1.10.6 ; python_version >= "3.10" and python_version < "3.11"
6060
pydash==6.0.2 ; python_version >= "3.10" and python_version < "3.11"
6161
pygments==2.14.0 ; python_version >= "3.10" and python_version < "3.11"
6262
pyhumps==3.8.0 ; python_version >= "3.10" and python_version < "3.11"

requirements.pytezos.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dnspython==2.3.0 ; python_version >= "3.10" and python_version < "3.11"
3939
docker==6.0.1 ; python_version >= "3.10" and python_version < "3.11"
4040
email-validator==1.3.1 ; python_version >= "3.10" and python_version < "3.11"
4141
eth-hash==0.5.1 ; python_version >= "3.10" and python_version < "3.11"
42-
eth-typing==3.2.0 ; python_version >= "3.10" and python_version < "3.11"
42+
eth-typing==3.3.0 ; python_version >= "3.10" and python_version < "3.11"
4343
eth-utils==2.1.0 ; python_version >= "3.10" and python_version < "3.11"
4444
exceptiongroup==1.1.0 ; python_version >= "3.10" and python_version < "3.11"
4545
executing==1.2.0 ; python_version >= "3.10" and python_version < "3.11"
@@ -74,7 +74,7 @@ markupsafe==2.1.2 ; python_version >= "3.10" and python_version < "3.11"
7474
matplotlib-inline==0.1.6 ; python_version >= "3.10" and python_version < "3.11"
7575
mistune==2.0.5 ; python_version >= "3.10" and python_version < "3.11"
7676
mnemonic==0.20 ; python_version >= "3.10" and python_version < "3.11"
77-
msgpack==1.0.4 ; python_version >= "3.10" and python_version < "3.11"
77+
msgpack==1.0.5 ; python_version >= "3.10" and python_version < "3.11"
7878
multidict==6.0.4 ; python_version >= "3.10" and python_version < "3.11"
7979
mypy-extensions==1.0.0 ; python_version >= "3.10" and python_version < "3.11"
8080
nbclassic==0.5.3 ; python_version >= "3.10" and python_version < "3.11"
@@ -105,8 +105,8 @@ ptyprocess==0.7.0 ; python_version >= "3.10" and python_version < "3.11" and os_
105105
pure-eval==0.2.2 ; python_version >= "3.10" and python_version < "3.11"
106106
py-ecc==6.0.0 ; python_version >= "3.10" and python_version < "3.11"
107107
pycparser==2.21 ; python_version >= "3.10" and python_version < "3.11"
108-
pydantic==1.10.5 ; python_version >= "3.10" and python_version < "3.11"
109-
pydantic[email]==1.10.5 ; python_version >= "3.10" and python_version < "3.11"
108+
pydantic==1.10.6 ; python_version >= "3.10" and python_version < "3.11"
109+
pydantic[email]==1.10.6 ; python_version >= "3.10" and python_version < "3.11"
110110
pygments==2.14.0 ; python_version >= "3.10" and python_version < "3.11"
111111
pyhumps==3.8.0 ; python_version >= "3.10" and python_version < "3.11"
112112
pypika-tortoise==0.1.6 ; python_version >= "3.10" and python_version < "3.11"

requirements.slim.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ colorama==0.4.6 ; python_version >= "3.10" and python_version < "3.11" and platf
1414
frozenlist==1.3.3 ; python_version >= "3.10" and python_version < "3.11"
1515
idna==3.4 ; python_version >= "3.10" and python_version < "3.11"
1616
iso8601==1.1.0 ; python_version >= "3.10" and python_version < "3.11"
17-
msgpack==1.0.4 ; python_version >= "3.10" and python_version < "3.11"
17+
msgpack==1.0.5 ; python_version >= "3.10" and python_version < "3.11"
1818
multidict==6.0.4 ; python_version >= "3.10" and python_version < "3.11"
1919
orjson==3.8.7 ; python_version >= "3.10" and python_version < "3.11"
2020
prometheus-client==0.14.1 ; python_version >= "3.10" and python_version < "3.11"
21-
pydantic==1.10.5 ; python_version >= "3.10" and python_version < "3.11"
21+
pydantic==1.10.6 ; python_version >= "3.10" and python_version < "3.11"
2222
pyhumps==3.8.0 ; python_version >= "3.10" and python_version < "3.11"
2323
pypika-tortoise==0.1.6 ; python_version >= "3.10" and python_version < "3.11"
2424
pysignalr==0.1.2 ; python_version >= "3.10" and python_version < "3.11"

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jsonschema-spec==0.1.3 ; python_version >= "3.10" and python_version < "3.11"
3030
jsonschema==4.17.3 ; python_version >= "3.10" and python_version < "3.11"
3131
lazy-object-proxy==1.9.0 ; python_version >= "3.10" and python_version < "3.11"
3232
markupsafe==2.1.2 ; python_version >= "3.10" and python_version < "3.11"
33-
msgpack==1.0.4 ; python_version >= "3.10" and python_version < "3.11"
33+
msgpack==1.0.5 ; python_version >= "3.10" and python_version < "3.11"
3434
multidict==6.0.4 ; python_version >= "3.10" and python_version < "3.11"
3535
mypy-extensions==1.0.0 ; python_version >= "3.10" and python_version < "3.11"
3636
openapi-schema-validator==0.3.4 ; python_version >= "3.10" and python_version < "3.11"
@@ -42,8 +42,8 @@ pathspec==0.11.0 ; python_version >= "3.10" and python_version < "3.11"
4242
platformdirs==3.1.0 ; python_version >= "3.10" and python_version < "3.11"
4343
prance==0.22.2.22.0 ; python_version >= "3.10" and python_version < "3.11"
4444
prometheus-client==0.14.1 ; python_version >= "3.10" and python_version < "3.11"
45-
pydantic==1.10.5 ; python_version >= "3.10" and python_version < "3.11"
46-
pydantic[email]==1.10.5 ; python_version >= "3.10" and python_version < "3.11"
45+
pydantic==1.10.6 ; python_version >= "3.10" and python_version < "3.11"
46+
pydantic[email]==1.10.6 ; python_version >= "3.10" and python_version < "3.11"
4747
pyhumps==3.8.0 ; python_version >= "3.10" and python_version < "3.11"
4848
pypika-tortoise==0.1.6 ; python_version >= "3.10" and python_version < "3.11"
4949
pyrsistent==0.19.3 ; python_version >= "3.10" and python_version < "3.11"

scripts/update_cookiecutter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
from dipdup.project import BaseProject
55

66
path = Path(__file__).parent.parent / 'docs' / 'cookiecutter.json'
7-
project = BaseProject() # type: ignore[call-arg]
7+
project = BaseProject()
88
project.run(quiet=True, replay=None)
99
project.write_cookiecutter_json(path)

scripts/update_demos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _get_projects() -> list[Path]:
2828
continue
2929

3030
print(f'=> Updating {project_path.name}')
31-
project = BaseProject() # type: ignore[call-arg]
31+
project = BaseProject()
3232
project.run(quiet=True, replay=str(project_path))
3333
project.render(force=True)
3434

src/dipdup/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ async def new(
539539
"""Create a new project interactively."""
540540
from dipdup.project import BaseProject
541541

542-
project = BaseProject() # type: ignore[call-arg]
542+
project = BaseProject()
543543
project.run(quiet, replay)
544544
project.render(force)
545545

src/dipdup/config.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,9 +1767,8 @@ def _resolve_index_subscriptions(self, index_config: IndexConfigU) -> None:
17671767
index_config.subscriptions.add(HeadSubscription())
17681768

17691769
elif isinstance(index_config, TokenTransferIndexConfig):
1770-
# NOTE: mypy fails to parse "from_" alias
17711770
if self.advanced.merge_subscriptions:
1772-
index_config.subscriptions.add(TokenTransferSubscription()) # type: ignore[call-arg]
1771+
index_config.subscriptions.add(TokenTransferSubscription())
17731772
else:
17741773
for handler_config in index_config.handlers:
17751774
contract = (
@@ -1778,8 +1777,11 @@ def _resolve_index_subscriptions(self, index_config: IndexConfigU) -> None:
17781777
from_ = handler_config.from_.address if isinstance(handler_config.from_, ContractConfig) else None
17791778
to = handler_config.to.address if isinstance(handler_config.to, ContractConfig) else None
17801779
index_config.subscriptions.add(
1781-
TokenTransferSubscription( # type: ignore[call-arg]
1782-
contract=contract, from_=from_, to=to, token_id=handler_config.token_id
1780+
TokenTransferSubscription(
1781+
contract=contract,
1782+
from_=from_, # type: ignore[call-arg]
1783+
to=to,
1784+
token_id=handler_config.token_id,
17831785
)
17841786
)
17851787

0 commit comments

Comments
 (0)