Skip to content

Commit dcb3019

Browse files
reformat warn
1 parent fcf22f9 commit dcb3019

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

mpcontribs-client/mpcontribs/client/__init__.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -890,18 +890,17 @@ def __init__(
890890
session (requests.Session): override session for client to use
891891
"""
892892

893-
# ruff: disable[E501]
894893
logger.warning(
895-
"""The `mpcontribs-client` package has been deprecated in favor of the main Materials Project (MP) API client `mp-api`.
896-
To use the MP Contribs client swith up-to-date features, please `pip install 'mp-api[contribs]'`:
897-
```py
898-
from mp_api.client import MPRester
899-
900-
with MPRester() as mpr:
901-
mpr.contribs.query_contributions(...)
902-
```"""
894+
"The `mpcontribs-client` package has been deprecated "
895+
"in favor of the main Materials Project (MP) API client `mp-api`. "
896+
"To use the MP Contribs client swith up-to-date features, "
897+
"please `pip install 'mp-api[contribs]'`:\n"
898+
"```py\n"
899+
"from mp_api.client import MPRester\n"
900+
"with MPRester() as mpr:\n"
901+
" mpr.contribs.query_contributions(...)\n"
902+
"```"
903903
)
904-
# ruff: enable[E501]
905904

906905
# NOTE bravado future doesn't work with concurrent.futures
907906
# - Kong forwards consumer headers when api-key used for auth

0 commit comments

Comments
 (0)