Skip to content

Commit

Permalink
Refactor distro.info() method to return an InfoDict (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
25077667 authored Jun 4, 2023
1 parent c443f12 commit 2804e55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/distro/distro.py
Original file line number Diff line number Diff line change
Expand Up @@ -995,10 +995,10 @@ def info(self, pretty: bool = False, best: bool = False) -> InfoDict:
For details, see :func:`distro.info`.
"""
return dict(
return InfoDict(
id=self.id(),
version=self.version(pretty, best),
version_parts=dict(
version_parts=VersionDict(
major=self.major_version(best),
minor=self.minor_version(best),
build_number=self.build_number(best),
Expand Down

0 comments on commit 2804e55

Please sign in to comment.