Passed
Pull Request — main (#155)
by Oliver
01:45
created

silence.setup()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nop 1
1
from sphinx.domains.python import PythonDomain
2
3
4
class PatchedPythonDomain(PythonDomain):
5
    def resolve_xref(self, env, fromdocname, builder, typ, target, node, contnode):
6
        if 'refspecific' in node:
7
            del node['refspecific']
8
        return super(PatchedPythonDomain, self).resolve_xref(
9
            env, fromdocname, builder, typ, target, node, contnode)
10
11
12
def setup(sphinx):
13
    sphinx.add_domain(PatchedPythonDomain, override=True)
14