From 48e02bcbe35b92150ccf31d4d490c79b6bc521e6 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Wed, 21 Aug 2024 16:43:01 +0100 Subject: [PATCH] Fix misplaced comments on formats.py --- CHANGELOG.rst | 5 +++++ src/validate_pyproject/formats.py | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ba28f61..12fe7e7 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,11 @@ Changelog Development Version ==================== +Development Version +==================== + +- Fix misplaced comments on ``formats.py``, #184 + Version 0.19 ============ - Relax requirements about module names to also allow dash characters, #164 diff --git a/src/validate_pyproject/formats.py b/src/validate_pyproject/formats.py index 153b1f0..817dace 100644 --- a/src/validate_pyproject/formats.py +++ b/src/validate_pyproject/formats.py @@ -164,12 +164,15 @@ class _TroveClassifier: """ downloaded: typing.Union[None, "Literal[False]", typing.Set[str]] + """ + None => not cached yet + False => unavailable + set => cached values + """ def __init__(self) -> None: self.downloaded = None self._skip_download = False - # None => not cached yet - # False => cache not available self.__name__ = "trove_classifier" # Emulate a public function def _disable_download(self) -> None: