File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1- import warnings
21from pathlib import Path
32
43
5- warnings .warn (
6- "The ``ethPM`` module is no longer being maintained and will be "
7- "deprecated with ``web3.py`` version 7" ,
8- UserWarning ,
9- )
10-
114ETHPM_DIR = Path (__file__ ).parent
125ASSETS_DIR = ETHPM_DIR / "assets"
136
Original file line number Diff line number Diff line change 1+ Moved `ethpm ` deprecation warning to only show when the module is explicitly enabled
Original file line number Diff line number Diff line change 11import decimal
2+ import warnings
23
34from ens import (
45 AsyncENS ,
@@ -343,6 +344,12 @@ def pm(self) -> "PM":
343344 )
344345
345346 def enable_unstable_package_management_api (self ) -> None :
347+ warnings .warn (
348+ "The ``ethPM`` module is no longer being maintained and will be "
349+ "deprecated with ``web3.py`` version 7" ,
350+ UserWarning ,
351+ )
352+
346353 from web3 .pm import PM # noqa: F811
347354
348355 if not hasattr (self , "_pm" ):
You can’t perform that action at this time.
0 commit comments