Skip to content

Commit

Permalink
fixed organization of imports within schema
Browse files Browse the repository at this point in the history
  • Loading branch information
for-hyde committed Sep 20, 2024
1 parent efe8a6b commit df72fe2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
9 changes: 9 additions & 0 deletions omnipath_metabo/schema/_base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from sqlalchemy.ext.declarative import declarative_base
from . import _structure

__all__ = ['Base']

Base = declarative_base()



9 changes: 2 additions & 7 deletions omnipath_metabo/schema/_main.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
from sqlalchemy.ext.declarative import declarative_base


__all__ = ['Base']

Base = declarative_base()

from . import _structure
from ._base import Base

def create(con):

Expand Down
2 changes: 1 addition & 1 deletion omnipath_metabo/schema/_structure.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from sqlalchemy import create_engine, Column, Integer, String
from ._main import Base
from ._base import Base


class Structure(Base):
Expand Down

0 comments on commit df72fe2

Please sign in to comment.