Skip to content

Commit

Permalink
feat: allow CompilerAPI to be imported from root ape.api namespace (#288
Browse files Browse the repository at this point in the history
)
  • Loading branch information
antazoey authored Dec 7, 2021
1 parent 898fc8d commit e1ec612
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/ape/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from .accounts import AccountAPI, AccountContainerAPI, TestAccountAPI, TestAccountContainerAPI
from .address import Address, AddressAPI
from .compiler import CompilerAPI
from .config import ConfigDict, ConfigEnum, ConfigItem
from .contracts import ContractInstance, ContractLog
from .convert import ConverterAPI
Expand Down Expand Up @@ -27,6 +28,7 @@
"BlockAPI",
"BlockConsensusAPI",
"BlockGasAPI",
"CompilerAPI",
"ConfigDict",
"ConfigEnum",
"ConfigItem",
Expand Down
2 changes: 1 addition & 1 deletion src/ape/api/compiler.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from pathlib import Path
from typing import List, Set

from ape.api import ConfigItem
from ape.types import ContractType

from .base import abstractdataclass, abstractmethod
from .config import ConfigItem


@abstractdataclass
Expand Down
2 changes: 1 addition & 1 deletion src/ape/managers/compilers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from dataclassy import dataclass

from ape.api.compiler import CompilerAPI
from ape.api import CompilerAPI
from ape.exceptions import CompilerError
from ape.logging import logger
from ape.plugins import PluginManager
Expand Down
2 changes: 1 addition & 1 deletion src/ape/plugins/compiler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Tuple, Type

from ape.api.compiler import CompilerAPI
from ape.api import CompilerAPI

from .pluggy_patch import PluginType, hookspec

Expand Down
2 changes: 1 addition & 1 deletion src/ape_pm/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pathlib import Path
from typing import List, Set

from ape.api.compiler import CompilerAPI
from ape.api import CompilerAPI
from ape.exceptions import CompilerError
from ape.types import ContractType

Expand Down

0 comments on commit e1ec612

Please sign in to comment.