Skip to content

Commit

Permalink
Move comment
Browse files Browse the repository at this point in the history
  • Loading branch information
realshouzy committed Feb 3, 2024
1 parent e20d627 commit 30a7f3a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pip_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,6 @@ def _get_outdated_packages(
return [pkg for pkg in packages if pkg.name not in exclude] if exclude else packages


# Next two functions describe how to collect data for the table.
# Note how they are not concerned with columns widths.


class _Column(NamedTuple):
title: str
field: str
Expand All @@ -318,6 +314,9 @@ class _Column(NamedTuple):
_Column("Type", "latest_filetype"),
)

# Next two functions describe how to collect data for the table.
# Note how they are not concerned with columns widths.


def _extract_column(data: list[_Package], field: str, title: str) -> list[str]:
return [title, *[getattr(item, field) for item in data]]
Expand Down

0 comments on commit 30a7f3a

Please sign in to comment.