We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2769d56 commit ce3e1d9Copy full SHA for ce3e1d9
datajoint/declare.py
@@ -439,10 +439,9 @@ def format_attribute(attr):
439
match, attr = translate_attribute(attr)
440
if match is None:
441
return attr
442
- elif match["path"] is None:
+ if match["path"] is None:
443
return f"`{attr}`"
444
- else:
445
- return f"({attr})"
+ return f"({attr})"
446
447
match = re.match(
448
r"(?P<unique>unique\s+)?index\s*\(\s*(?P<args>.*)\)", line, re.I
0 commit comments