Skip to content

Commit

Permalink
Use absolute imports where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
kg583 committed Dec 30, 2023
1 parent 1cbf950 commit 2e98a54
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 31 deletions.
6 changes: 3 additions & 3 deletions tivars/models/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

from functools import total_ordering

from ..flags import *
from ..tokens.scripts import OsVersion, Tokens, TokenTrie
from ..tokens.scripts.parse import MODEL_ORDER
from tivars.flags import *
from tivars.tokens.scripts import OsVersion, Tokens, TokenTrie
from tivars.tokens.scripts.parse import MODEL_ORDER


@total_ordering
Expand Down
6 changes: 3 additions & 3 deletions tivars/tokenizer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

from typing import ByteString

from ..data import String
from ..models import *
from ..tokens.scripts import *
from tivars.data import String
from tivars.models import *
from tivars.tokens.scripts import *


def decode(bytestream: ByteString, *,
Expand Down
2 changes: 1 addition & 1 deletion tivars/types/appvar.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


from tivars.models import *
from ..var import SizedEntry
from tivars.var import SizedEntry


class TIAppVar(SizedEntry, register=True):
Expand Down
4 changes: 2 additions & 2 deletions tivars/types/complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from typing import Type
from warnings import warn

from tivars.data import *
from tivars.models import *
from tivars.numeric import *
from ..data import *
from ..var import TIEntry
from tivars.var import TIEntry
from .real import *


Expand Down
8 changes: 4 additions & 4 deletions tivars/types/flash.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ..data import *
from ..flash import TIFlashHeader
from ..models import *
from tivars.data import *
from tivars.flash import TIFlashHeader
from tivars.models import *


class TIOperatingSystem(TIFlashHeader, register=True):
Expand Down Expand Up @@ -59,7 +59,7 @@ def calc_data(self) -> bytes:
@View(calc_data, String)[:]
def license(self) -> str:
"""
The license stored in this header
The license stored in the header as a string
"""


Expand Down
6 changes: 3 additions & 3 deletions tivars/types/gdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
from typing import Iterator
from warnings import catch_warnings, filterwarnings, warn

from tivars.flags import *
from tivars.data import *
from tivars.models import *
from ..flags import *
from ..data import *
from ..var import TIEntry, SizedEntry
from tivars.var import TIEntry, SizedEntry
from .real import *
from .tokenized import TIEquation

Expand Down
4 changes: 2 additions & 2 deletions tivars/types/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
from typing import Sequence
from warnings import warn

from tivars.data import *
from tivars.models import *
from ..data import *
from ..var import TIEntry, SizedEntry
from tivars.var import TIEntry, SizedEntry
from .gdb import TIGraphedEquation


Expand Down
6 changes: 3 additions & 3 deletions tivars/types/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
from typing import ByteString, Iterator, Sequence
from warnings import warn

from tivars.data import *
from tivars.models import *
from tivars.tokenizer import TokenizedString
from ..data import *
from ..var import TIEntry
from tivars.tokenizer import *
from tivars.var import TIEntry
from .complex import ComplexEntry
from .real import RealEntry

Expand Down
4 changes: 2 additions & 2 deletions tivars/types/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
from typing import ByteString, Iterator, Sequence
from warnings import warn

from tivars.data import *
from tivars.models import *
from ..data import *
from ..var import TIEntry
from tivars.var import TIEntry
from .real import RealEntry


Expand Down
4 changes: 2 additions & 2 deletions tivars/types/picture.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from typing import Iterator, Sequence
from warnings import warn

from tivars.data import *
from tivars.models import *
from tivars.tokenizer import TokenizedString
from ..data import *
from ..var import SizedEntry
from tivars.var import SizedEntry

RGB = tuple[int, int, int]

Expand Down
4 changes: 2 additions & 2 deletions tivars/types/real.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
from typing import Type
from warnings import warn

from tivars.data import *
from tivars.models import *
from tivars.numeric import *
from ..data import *
from ..var import TIEntry
from tivars.var import TIEntry


class RealEntry(TIEntry):
Expand Down
4 changes: 2 additions & 2 deletions tivars/types/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

from warnings import warn

from tivars.data import *
from tivars.models import *
from ..data import *
from ..var import SizedEntry
from tivars.var import SizedEntry
from .real import GraphRealEntry


Expand Down
4 changes: 2 additions & 2 deletions tivars/types/tokenized.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
from typing import ByteString
from warnings import warn

from tivars.data import *
from tivars.models import *
from tivars.tokenizer import *
from ..data import *
from ..var import SizedEntry
from tivars.var import SizedEntry


class TokenizedEntry(SizedEntry):
Expand Down

0 comments on commit 2e98a54

Please sign in to comment.