We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
distro.version
1 parent d3e9194 commit 99817fcCopy full SHA for 99817fc
distro.py
@@ -308,6 +308,10 @@ def version(pretty: bool = False, best: bool = False) -> str:
308
sources in a fixed priority order does not always yield the most precise
309
version (e.g. for Debian 8.2, or CentOS 7.1).
310
311
+ Some other distributions may not provide this kind of information. In these
312
+ cases, an empty string would be returned. This behavior can be observed
313
+ with rolling releases distributions (e.g. Arch Linux).
314
+
315
The *best* parameter can be used to control the approach for the returned
316
version:
317
0 commit comments