Skip to content

Commit

Permalink
Fix misplaced comments on formats.py (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri authored Aug 27, 2024
2 parents b86ed4d + 48e02bc commit 84aa9e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions src/validate_pyproject/formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 84aa9e5

Please sign in to comment.