Skip to content

Commit

Permalink
fix: <py38 import cached_property in global_context.py
Browse files Browse the repository at this point in the history
  • Loading branch information
skellet0r committed Oct 21, 2021
1 parent bfffcea commit 8cf26db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vyper/old_codegen/global_context.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from functools import cached_property
from typing import Optional

from vyper import ast as vy_ast
Expand All @@ -7,6 +6,12 @@
from vyper.old_codegen.types import InterfaceType, parse_type
from vyper.typing import InterfaceImports

try:
# available py3.8+
from functools import cached_property
except ImportError:
from cached_property import cached_property # type: ignore


# Datatype to store all global context information.
class GlobalContext:
Expand Down

0 comments on commit 8cf26db

Please sign in to comment.