Skip to content

Commit 70dcc31

Browse files
committed
Change table_name from property to class attribute
1 parent 0a64d40 commit 70dcc31

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

datajoint/lineage.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class LineageTable(Table):
3333
lineage : varchar(200) # "schema.table.attribute"
3434
"""
3535

36+
table_name = "~lineage"
37+
3638
def __init__(self, connection, database):
3739
self.database = database
3840
self._connection = connection
@@ -49,10 +51,6 @@ def __init__(self, connection, database):
4951
if not self.is_declared:
5052
self.declare()
5153

52-
@property
53-
def table_name(self):
54-
return "~lineage"
55-
5654
def delete(self):
5755
"""Bypass interactive prompts and dependencies."""
5856
self.delete_quick()

0 commit comments

Comments
 (0)