Skip to content

Commit

Permalink
refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
rpakishore committed Nov 22, 2023
1 parent 9422588 commit 9a60784
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 6 additions & 0 deletions src/ak_sap/Database/table_constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from typing import Literal

ImportType_Literals = Literal['not importable',
'importable, but not interactively importable',
'importable and interactive importable when he model is unlocked',
'importable and interactive importable when he model is unlocked and locked',]
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
from dataclasses import dataclass
from typing import Literal

ImportType_Literals = Literal['not importable',
'importable, but not interactively importable',
'importable and interactive importable when he model is unlocked',
'importable and interactive importable when he model is unlocked and locked',]

from .table_constants import ImportType_Literals

@dataclass
class DatabaseTable:
Expand Down
3 changes: 2 additions & 1 deletion src/ak_sap/Database/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import typing

from ak_sap.utils import log
from .table_data import DatabaseTable, ImportType_Literals, FieldData
from .table_structured_data import DatabaseTable, FieldData
from .table_constants import ImportType_Literals

class Table:
def __init__(self, mySapObject) -> None:
Expand Down
1 change: 0 additions & 1 deletion src/ak_sap/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from pathlib import Path
import sys
from typing import Any

from ak_sap.Model import Model
from ak_sap.Element import Element
Expand Down

0 comments on commit 9a60784

Please sign in to comment.