Skip to content

Commit 2804e55

Browse files
authored
Refactor distro.info() method to return an InfoDict (#360)
1 parent c443f12 commit 2804e55

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/distro/distro.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -995,10 +995,10 @@ def info(self, pretty: bool = False, best: bool = False) -> InfoDict:
995995
996996
For details, see :func:`distro.info`.
997997
"""
998-
return dict(
998+
return InfoDict(
999999
id=self.id(),
10001000
version=self.version(pretty, best),
1001-
version_parts=dict(
1001+
version_parts=VersionDict(
10021002
major=self.major_version(best),
10031003
minor=self.minor_version(best),
10041004
build_number=self.build_number(best),

0 commit comments

Comments
 (0)