Skip to content

Commit 21fcfdd

Browse files
committed
Avoid flood of role-type logs
1 parent b3cee9c commit 21fcfdd

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

hypothesis-python/docs/conf.py

+11
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,17 @@ def setup(app):
8282
# See https://sphinx-hoverxref.readthedocs.io/en/latest/configuration.html
8383
hoverxref_auto_ref = True
8484
hoverxref_domains = ["py"]
85+
hoverxref_role_types = {
86+
"attr": "tooltip",
87+
"class": "tooltip",
88+
"const": "tooltip",
89+
"exc": "tooltip",
90+
"func": "tooltip",
91+
"meth": "tooltip",
92+
"mod": "tooltip",
93+
"obj": "tooltip",
94+
"ref": "tooltip",
95+
}
8596

8697
intersphinx_mapping = {
8798
"python": ("https://docs.python.org/3/", None),

hypothesis-python/docs/extras.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ There are separate pages for :doc:`django` and :doc:`numpy`.
2828
.. automodule:: hypothesis.extra.dpcontracts
2929
:members:
3030

31-
.. tip::
31+
.. tip::
3232

33-
For new projects, we recommend using either :pypi:`deal` or :pypi:`icontract`
34-
and :pypi:`icontract-hypothesis` over :pypi:`dpcontracts`.
35-
They're generally more powerful tools for design-by-contract programming,
36-
and have substantially nicer Hypothesis integration too!
33+
For new projects, we recommend using either :pypi:`deal` or :pypi:`icontract`
34+
and :pypi:`icontract-hypothesis` over :pypi:`dpcontracts`.
35+
They're generally more powerful tools for design-by-contract programming,
36+
and have substantially nicer Hypothesis integration too!
3737

3838
.. automodule:: hypothesis.extra.lark
3939
:members:

0 commit comments

Comments
 (0)