Skip to content

Commit

Permalink
Merge pull request #17 from posit-dev/refactor-remove-base-api
Browse files Browse the repository at this point in the history
refactor: remove BaseAPI
  • Loading branch information
machow authored Oct 24, 2023
2 parents f38d615 + 39644a8 commit f8f704f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 23 deletions.
16 changes: 0 additions & 16 deletions gt/_base_api.py

This file was deleted.

3 changes: 1 addition & 2 deletions gt/_boxhead.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

import pandas as pd

from ._base_api import BaseAPI
from ._tbl_data import get_column_names

from ._utils import _assert_list_is_subset


class BoxheadAPI(BaseAPI):
class BoxheadAPI():
def cols_label(self, **kwargs: str):
"""
Relabel one or more columns.
Expand Down
3 changes: 0 additions & 3 deletions gt/_gt_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def render_formats(
from enum import Enum, auto
import pandas as pd

from ._base_api import BaseAPI
from ._tbl_data import TblData, get_column_names

from ._utils import _assert_list_is_subset
Expand Down Expand Up @@ -142,7 +141,6 @@ def _get_effective_number_of_columns(self) -> int:

from typing import Optional

from ._base_api import BaseAPI
from ._tbl_data import TblData, n_rows


Expand Down Expand Up @@ -395,7 +393,6 @@ def __init__(self, locale: str = ""):

from typing import Any, Callable, TypeVar, Union, List, cast, Optional, Tuple

from ._base_api import BaseAPI
from ._tbl_data import n_rows

FormatFn = Callable[[Any], str]
Expand Down
3 changes: 1 addition & 2 deletions gt/_stub.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import annotations
from ._base_api import BaseAPI


class StubAPI(BaseAPI):
class StubAPI():
pass

0 comments on commit f8f704f

Please sign in to comment.