Skip to content

Commit 4938a98

Browse files
Run black
1 parent eb05b33 commit 4938a98

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

build_tools/sphinx/github_link.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import pynetdicom
1010

11-
1211
REVISION_CMD = "git rev-parse --short HEAD"
1312

1413

@@ -44,15 +43,15 @@ def _linkcode_resolve(domain, info, package, url_fmt, revision):
4443
if not info.get("module") or not info.get("fullname"):
4544
return
4645

47-
modname = info['module']
48-
fullname = info['fullname']
46+
modname = info["module"]
47+
fullname = info["fullname"]
4948

5049
submod = sys.modules.get(modname)
5150
if submod is None:
5251
return None
5352

5453
obj = submod
55-
for part in fullname.split('.'):
54+
for part in fullname.split("."):
5655
try:
5756
obj = getattr(obj, part)
5857
except AttributeError:
@@ -66,7 +65,7 @@ def _linkcode_resolve(domain, info, package, url_fmt, revision):
6665
except TypeError as exc:
6766
fn = None
6867

69-
if not fn or fn.endswith('__init__.py'):
68+
if not fn or fn.endswith("__init__.py"):
7069
# The UID gets resolved to the venv pydicom install otherwise
7170
if fullname == "PYNETDICOM_IMPLEMENTATION_UID":
7271
fn = Path(pynetdicom.__file__)

0 commit comments

Comments
 (0)