From 18d1ae8667641bec80ccde23140604ae7183359b Mon Sep 17 00:00:00 2001 From: Juliya Smith Date: Thu, 26 Oct 2023 13:38:16 -0500 Subject: [PATCH] fix: pydantic issues --- ape_vyper/compiler.py | 2 +- setup.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ape_vyper/compiler.py b/ape_vyper/compiler.py index 6e8aead6..5a74c9b9 100644 --- a/ape_vyper/compiler.py +++ b/ape_vyper/compiler.py @@ -9,6 +9,7 @@ from typing import Any, Dict, Iterator, List, Optional, Set, Tuple, Union, cast import vvm # type: ignore +from ape._pydantic_compat import validator from ape.api import PluginConfig from ape.api.compiler import CompilerAPI from ape.exceptions import ContractLogicError @@ -23,7 +24,6 @@ from evm_trace.enums import CALL_OPCODES from packaging.specifiers import InvalidSpecifier, SpecifierSet from packaging.version import Version -from pydantic import validator from vvm import compile_standard as vvm_compile_standard from vvm.exceptions import VyperError # type: ignore diff --git a/setup.py b/setup.py index 9e8ae7a1..6cdf4a63 100644 --- a/setup.py +++ b/setup.py @@ -19,6 +19,7 @@ "mdformat>=0.7.17", # Auto-formatter for markdown "mdformat-gfm>=0.3.5", # Needed for formatting GitHub-flavored markdown "mdformat-frontmatter>=0.4.1", # Needed for frontmatters-style headers in issue templates + "pydantic<2.0", # Needed for successful type check. TODO: Remove after full v2 support. ], "release": [ # `release` GitHub Action job uses this "setuptools", # Installation tool