Skip to content

Commit c805ab3

Browse files
committed
Removed type hints
1 parent 6f4c5a2 commit c805ab3

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

asdf/_asdf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,10 +1164,10 @@ def schema_info(self, key="description", path=None, preserve_list=True):
11641164

11651165
def info(
11661166
self,
1167-
max_rows: int | tuple[int, ...] | None = display.DEFAULT_MAX_ROWS,
1168-
max_cols: int | None = display.DEFAULT_MAX_COLS,
1169-
show_values: bool = display.DEFAULT_SHOW_VALUES,
1170-
show_blocks: bool = False,
1167+
max_rows=display.DEFAULT_MAX_ROWS,
1168+
max_cols=display.DEFAULT_MAX_COLS,
1169+
show_values=display.DEFAULT_SHOW_VALUES,
1170+
show_blocks=False,
11711171
):
11721172
"""
11731173
Print a rendering of this file's tree to stdout.

asdf/_convenience.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313

1414

1515
def info(
16-
node_or_path: str | Path | AsdfFile,
17-
max_rows: int | tuple[int, ...] | None = DEFAULT_MAX_ROWS,
18-
max_cols: int | None = DEFAULT_MAX_COLS,
19-
show_values: bool = DEFAULT_SHOW_VALUES,
20-
show_blocks: bool = False,
21-
) -> None:
16+
node_or_path,
17+
max_rows=DEFAULT_MAX_ROWS,
18+
max_cols=DEFAULT_MAX_COLS,
19+
show_values=DEFAULT_SHOW_VALUES,
20+
show_blocks=False,
21+
):
2222
"""
2323
Print a rendering of an ASDF tree or sub-tree to stdout.
2424

asdf/_display.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727

2828

2929
def render_table(
30-
title: str,
31-
rows: list[tuple[str, str]],
32-
) -> list[str]:
30+
title,
31+
rows,
32+
):
3333
"""Generate a simple 2 column table with title header."""
3434
# TODO: table formatting will break if the terminal is narrower than the content.
3535
# We could consider using shutil.get_terminal size to adjust the width of the table.

0 commit comments

Comments
 (0)